필터 지우기
필터 지우기

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

조회 수: 20 (최근 30일)
Eric Penchansky
Eric Penchansky 2016년 2월 12일
답변: Star Strider 2016년 2월 13일
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?

답변 (1개)

Star Strider
Star Strider 2016년 2월 13일
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’.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by