How to get a vector from an excel sheet

13 visualizaciones (últimos 30 días)
Debanjan Dasgupta
Debanjan Dasgupta el 20 de Oct. de 2014
Respondida: Ken Atwell el 20 de Oct. de 2014
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

Respuestas (2)

pietro
pietro el 20 de Oct. de 2014
xlsread can read a specific range so in case your range is a column you get a column array.

Ken Atwell
Ken Atwell el 20 de Oct. de 2014
Conversion from matrix to vector is:
>> x = x(:);

Community Treasure Hunt

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

Start Hunting!

Translated by