see attached.
I am using xlsread to load data from an xls file into matlab as a cell. I would like to return all the cell values in the first column starting from row 15 until the first NaN into a variable called "List"(of type cell or integer preferably).

 Réponse acceptée

Ghost
Ghost le 18 Avr 2016
Define your sheet and xlrange something similar to this
for f = 1:end;
A(:,f) = ALL(:,f);
sheet = 1;
xlRange = 'A2';
xlswrite(Exel_filename,A,sheet,xlRange)
end

3 commentaires

Leonardo Wayne
Leonardo Wayne le 18 Avr 2016
Hi, thanks for your answer. My question was : Is there another way to use the cell (raw) itself. Example: raw(15: 38,1) returns the row 15 until 38 manually. I would like matlab to search for the last cell where value is not NaN which is at row 39 onwards.
Leonardo Wayne
Leonardo Wayne le 18 Avr 2016
never mind that I have found a way around it :)
Ghost
Ghost le 20 Avr 2016
Will be good if you can share how did you solve it.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by