Joining arrays

CLOSE Dave Dave.Close at us.thalesgroup.com
Thu Jun 25 16:35:55 CDT 2009


Judd Storrs wrote:

> Maybe this can help get you closer (cell/matrix conversions 
> drive me nuts):
> 
> pkg load miscellaneous
> pkg load io
> 
> A = csv2cell ( "FileA" );
> T = A (:,1);
> B = dlmread ( "FileA", "," );
> 
> f = [ 1 2 3 ] ;
> r = rows ( B );
> C1 = conv ( B(2:r,2), f );
> C2 = rot90 ( C1 );
> 
> T(:,2) = cat ( 1, cellstr("Bx"), num2cell(C2(1:r-1)) ) ;
> cell2csv("FileB",T) ;

It did and I have my problem solved for now. Thank you very much.

It is my observation that when learning any new language, human or
machine, the syntax is far easier to master than the vocabulary. In the
case of the octave language, the huge number of functions available
constitute the vocabulary, and I obviously have a lot left to learn.




More information about the Help-octave mailing list