How to get a vector from an excel sheet
Ältere Kommentare anzeigen
I have an excel sheet from which I am reading the data using xlsread function. But it stores the output in a matrix. I want the output in a vector. Is there any way to do it directly. Or else how to convert the matrix thus obtained into a vector?
thank you, Debanjan
Antworten (2)
pietro
am 20 Okt. 2014
0 Stimmen
xlsread can read a specific range so in case your range is a column you get a column array.
Ken Atwell
am 20 Okt. 2014
Conversion from matrix to vector is:
>> x = x(:);
Kategorien
Mehr zu Use COM Objects in MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!