help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cell2mat


From: etienne
Subject: Re: cell2mat
Date: Mon, 30 Jul 2007 08:34:50 -0700 (PDT)
User-agent: SquirrelMail/1.4.9a

  Hello Bertrand,


On Mon, July 30, 2007 06:50, Bertrand Roessli wrote:
# Hello,
#
# cell2mat works in Matlab but not in
# Octave for this example :
# (I have octave 2.57 and downloaded cell2mat from sourceforge)

2.1.57? You probably want octave in the 2.9.X series. You would then get:

=========================================================================
octave:425>
S.pos={};
v1=[1;2;3];
v2=[10;20;30];
S.pos={v1,v2};

cell2mat(S.pos)octave:425> S.pos={};
octave:426> v1=[1;2;3];
octave:427> v2=[10;20;30];
octave:428> S.pos={v1,v2};
octave:429>
octave:429> cell2mat(S.pos)
ans =

    1   10
    2   20
    3   30
========================================================================

  Hth,

  Etienne

# S.pos={};
# v1=[1;2;3];
# v2=[10;20;30];
# S.pos={v1,v2};
#
# cell2mat(S.pos) in octave yields
#
# *** cat:
#
#  -- Built-in Function:  cat (DIM, ARRAY1, ARRAY2, ..., ARRAYN)
#      Return the concatenation of N-d array objects, ARRAY1, ARRAY2,
#      ..., ARRAYN along dimension DIM.
#
# Is there a difference between Matlab and Octave in the usage of
# cell2mat?
#
# Thank you,
#
# Bertrand Roessli
#
#
#
#
# --
# Dr. Bertrand Roessli
# Laboratory for Neutron Scattering
# Paul Scherrer Institut and ETH Zurich
# CH-5232 Villigen PSI
#
# Tel.: +41 56 310 44 01
#
# _______________________________________________
# Help-octave mailing list
# address@hidden
# https://www.cae.wisc.edu/mailman/listinfo/help-octave
#


-- 
http://www.isr.ist.utl.pt/~etienne



reply via email to

[Prev in Thread] Current Thread [Next in Thread]