[QA]How to load parameter in *.m file by matlab script into workspace
Afficher commentaires plus anciens
Hello Everyone,
I have a ***.m file (Parameter.m).
In the Parameter.m file. I defined CONST_PARAM = 5;
And I had other script file: CallParam()
function CallParam()
run('Parameter.m')
end
But when I run the function CallParam, the parameter CONST_PARAM did not be included into workspace.
The other hand, if you have a other suggestion please tell me.
Please help me.... I am trouble with this problem.
Thank you very much.
2 commentaires
madhan ravi
le 12 Avr 2019
Modifié(e) : madhan ravi
le 12 Avr 2019
Why do you have the need to create CallParam() function in the first place? , why not directly run the script using run()?
Binh Huynh Thanh
le 12 Avr 2019
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Large Files and Big Data dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!