MATLAB 2010 code not working in MATLAB2012a ?

조회 수: 2 (최근 30일)
Selva Karna
Selva Karna 2022년 1월 10일
댓글: Hiro Yoshino 2022년 1월 10일
MATLAB 2010 code not working in MATLAB2012a ?
my 2010a file name: TestingFile.m
function [z,w]=testingfile(a,b)
z=a+b;
w=z*b;
end
---Above code developed by 2010a, this not working in 2012a ? showing error like case sentivity ? so how
to solve this issue without change matlab code in 2012a?

답변 (1개)

Torsten
Torsten 2022년 1월 10일
The filename must be
"testingfile.m"
not
"TestingFile.m"
Or your function must be renamed in
function [z,w] = TestingFile(a,b)
  댓글 수: 1
Hiro Yoshino
Hiro Yoshino 2022년 1월 10일
The file name should be identical to the function name in it (case sensitive!)
This is a basic rule of MATLAB function.

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

카테고리

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

제품


릴리스

R2012a

Community Treasure Hunt

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

Start Hunting!

Translated by