When the enumeration of the Excel cell with the name: CalculationFree, I want to use this cell as a variable in Matlab:

조회 수: 2 (최근 30일)
Hello,
When the enumeration of the Excel cell with the name: CalculationFree
I want to use this cell as a variable in Matlab:
A=1;
Forest'CalculationFree'=A;
Forest'CalculationFree'=1
or
A=1;
CalculationFree'=A;
CalculationFree'=1
I do not know, How to convert string for variable in Matlab.
Thank you for answer
  댓글 수: 2
Jaroslav Keprt
Jaroslav Keprt 2016년 2월 10일
Because I have a big file with measured data. There's a lot of column, and it has its own name. I want these columns as individual variables in Matlab (and time)

댓글을 달려면 로그인하십시오.

답변 (1개)

Stephen23
Stephen23 2016년 2월 5일
편집: Stephen23 2019년 6월 25일
  댓글 수: 2
Stephen23
Stephen23 2016년 2월 10일
My pleasure. It really is a bad idea to import your data into lots of dynamically defined variables. Just import the data into one variable (a cell or structure) and this will make your code simpler, faster, and more robust.

댓글을 달려면 로그인하십시오.

카테고리

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