convert array number in array string

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

convert array number in array string

turbofib
hi,

i give to code it:

for fr=1:columns(sistemOrigEquity)  

  newMatrixEquity(:,con)=sistemOrigEquity(:,fr);

endfor


sistemOrigEquity is a matrix of number

but i want to convert it in string

how can i code it?





--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: convert array number in array string

Andreas Weber-6
Am 06.07.2018 um 13:54 schrieb turbofib:
> sistemOrigEquity is a matrix of number
> but i want to convert it in string

help num2str


Reply | Threaded
Open this post in threaded view
|

Re: convert array number in array string

turbofib
i try it :

  newMatrixEquity(:,con)=num2str(sistemOrigEquity(:,fr));

i receive this error:

é—¼error: TitanBase3: A(I,J,...) = X: dimensions mismatch
error: called from
    TitanBase3 at line 160 column 25



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html