Using Matlab as a variable name

조회 수: 1(최근 30일)
KAE 2022년 9월 29일
댓글: KAE 2022년 9월 29일
I am comparing results from a program written in Matlab to one written in Labview, so I want to create structures named Matlab and Labview containing the program outputs. matlab.m exists on my path as a readme type of file with no code in it, so no conflict there. Are there any conflicts with existing functions etc. to beware of if I use Matlab and Labview as structure names?

채택된 답변

Steven Lord
Steven Lord 2022년 9월 29일
There is a package named matlab that some functionality in MATLAB uses (such as the unit testing framework matlab.unittest package) so I'd recommend using a different name. Perhaps "matlabresults" would be a better name, or maybe a "results" struct with fields named matlab and labview?
  댓글 수: 1
KAE 2022년 9월 29일
Thanks, Steve, and your solution is a good one.

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

추가 답변(0개)


Find more on Loops and Conditional Statements in Help Center and File Exchange



Community Treasure Hunt

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

Start Hunting!

Translated by