Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today
Rbk's Newsreader Profile

Rbk
E-mail: HIDDEN

Personal Profile:

These posts were very useful. :) But I just would like to specify that in Armindo's code, nRows is the number of raws of the NUMERIC DATA only.

Thus it is worth writing:

% store data of file in variable a
[ndata, text, alldata] = xlsread(file);

% new data to write in file
t = ones(1,10)

% last row with data in the file
nRows = (size(alldata,1));

instead of:

% store data of file in variable a
a = xlsread(file);

% new data to write in file
t = ones(1,10)

% last row with data in the file
nRows = (size(a,1));

Number of Posts: 1 messages in 1 threads

Watch this Author


Threads Rbk Posted To: 1 - 1 of 1
Post Date Subject Most Recent Poster Tags
7 Jun 2012 Rbk

Contact us