How to take a column of an excel spreadsheet and declare as a variable

21 Ansichten (letzte 30 Tage)
I have a selection of values from a column in excel which I would like to declare as a variable in MATLAB. What would be the best way to go about doing this?

Antworten (1)

Star Strider
Star Strider am 13 Feb. 2016
I would use xlsread, particularly with respect to the documentation on Read Column.
For example:
A = xlsread(filename, 'B:B');
This assigns colunm ‘B’ in the Excel file to variable ‘A’.

Kategorien

Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by