How can I use variable of one M-file into other M-file ?
Show older comments
Can i access variable of different M-file into my M-file ? Or How can I use variable of 1 M-file into other M-file ?
Answers (2)
Chandrasekhar
on 3 Apr 2014
0 votes
you can make functions and pass as arguments or u can declare them as global.
Andreas Goser
on 3 Apr 2014
Edited: Andreas Goser
on 3 Apr 2014
0 votes
When using scripts, your "M files" use one workspace and you can access all variables.
Categories
Find more on Workspace Variables and MAT Files 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!