How do I add a suffix using a portion of the the imported excel file name to the name of output variables?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have the attached code. I am sure it is not ideal as I am both new to programming and Matlab.
How do I add a suffix using a portion of the the imported excel file name to the name of output variables?
I want to change the following variables for this particular spread sheet (see attached):
A_B_1 to A_B_1h_1H
A_1 to A_1h_1H
B_1 to B_1h_1H
Any suggestions and advise would be most helpful.
Regards.
댓글 수: 1
Stephen23
2019년 1월 6일
편집: Stephen23
2019년 1월 6일
"How do I add a suffix using a portion of the the imported excel file name to the name of output variables?"
That is unlikely to be good data design, and most likely will make your code more complex than it needs to be (as well as slower, buggier, and harder to debug).
"Any suggestions and advise would be most helpful."
First read this:
and then use indexing. Remember that meta-data is also data, and so it should be stored as data in its own right as the value of a variable, not forced awkwardly into the name of a variable.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!