How to get a vector from an excel sheet

6 ビュー (過去 30 日間)
Debanjan Dasgupta
Debanjan Dasgupta 2014 年 10 月 20 日
回答済み: Ken Atwell 2014 年 10 月 20 日
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

回答 (2 件)

pietro
pietro 2014 年 10 月 20 日
xlsread can read a specific range so in case your range is a column you get a column array.

Ken Atwell
Ken Atwell 2014 年 10 月 20 日
Conversion from matrix to vector is:
>> x = x(:);

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by