How to I create variables with different names in the workspace using for loop?

조회 수: 6 (최근 30일)
Hi. Good Day.
May I please request ways to create different named variables in the workspace using the for loop function?
Thanks!
  댓글 수: 3
Bazil Faisal
Bazil Faisal 2022년 7월 7일
Didn't even know it exist. Please tell me more.

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

채택된 답변

Walter Roberson
Walter Roberson 2022년 7월 5일
Please read http://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dynamically-eval for information about why we strongly recommend against creating variable names dynamically.

추가 답변 (1개)

埃博拉酱
埃博拉酱 2022년 7월 7일
You're too new to MATLAB to write any actual code.
Learn your first course on https://matlabacademy.mathworks.com/ before doing any coding. Don't take MATLAB as a piece of cake that you can easily handle in one hour. If you don't have time to study hard, you might as well ask the experts around you.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by