How can I create variable in workspace with a cycle for script?
이전 댓글 표시
Hi, I'm trying to create variables in workspace with a "cycle for" script. I'd like to assign to each variable the column name of the input Excel sheet. I thought to use a generic variable in the cycle to assign the input values (txt, num and dates) in n cycle, but I can't save it in ws in a dynamic way. Have you any suggestions? Thanks a lot
Angelo
댓글 수: 1
Stephen23
2017년 9월 22일
"Have you any suggestions?"
Yes, read this very very carefully:
and then keep all of your data in one array. Actually I would suggest that you put all of your data into a table:
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!