help-octave
[Top][All Lists]
Advanced

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

Re: Matlab to Octave - problem wih the conversion


From: Istan
Subject: Re: Matlab to Octave - problem wih the conversion
Date: Fri, 5 Aug 2016 00:55:54 -0700 (PDT)

It does'nt run in state. I have done few changes in the code and it is ok :


clear all;
ncols = 2;  # number of columns in file
nhead = 1; # number of header lines here: x1 x2 x3 x4 x5 x6 x7
data = textread ("1.txt", "%f", "headerlines", nhead);
data = reshape (data, ncols, length(data) / ncols)' 
x =data(:,1);
y = data(:,2)
plot(x*1000,y)

Thank you for all !



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Matlab-to-Octave-problem-wih-the-conversion-tp4678981p4679027.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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