help-octave
[Top][All Lists]
Advanced

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

Saving as ascii files


From: asha g
Subject: Saving as ascii files
Date: Tue, 12 Mar 2013 18:58:01 +0800 (SGT)


 
 
 tmax = 55; niter = 6938;
 
x= linspace(0,tmax,niter);

vvvv(iter,:) = V;

vv1 = vvvv(:,1);
vv2 = vvvv(:,N);

save -mat-binary cabunbact1aoctN11oct x vv1 vv2


I want to save this as an ascii file with x, vv1 and vv2 in columns.

I did:

 load cabunbact1aoctN11oct x vv1 vv2

x = x' ; vv1 = vv1' ; vv2 = vv2';
save -ascii cabunbact1aoctN11octascii x vv1 vv2

I don't get 3 columns. Where am I going wrong ?

Also, if I write
q = [ x' vv1' vv2'] ;
I get an error message : error: number of rows must match (1 != 6938) near line 2, column 10


Help appreciated. 

Asha G


reply via email to

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