[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Joining arrays
From: |
CLOSE Dave |
Subject: |
RE: Joining arrays |
Date: |
Thu, 25 Jun 2009 14:35:55 -0700 |
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.