MATLAB 2010 code not working in MATLAB2012a ?

1 vue (au cours des 30 derniers jours)
Selva Karna
Selva Karna le 10 Jan 2022
Commenté : Hiro Yoshino le 10 Jan 2022
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?

Réponses (1)

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

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB Compiler SDK dans Help Center et File Exchange

Produits


Version

R2012a

Community Treasure Hunt

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

Start Hunting!

Translated by