[QA]How to load parameter in *.m file by matlab script into workspace
Show older comments
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 Comments
madhan ravi
on 12 Apr 2019
Edited: madhan ravi
on 12 Apr 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
on 12 Apr 2019
Accepted Answer
More Answers (0)
Categories
Find more on Whos 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!