How can I use variable of one M-file into other M-file ?
1 次查看(过去 30 天)
显示 更早的评论
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 ?
0 个评论
回答(2 个)
Chandrasekhar
2014-4-3
you can make functions and pass as arguments or u can declare them as global.
0 个评论
Andreas Goser
2014-4-3
编辑:Andreas Goser
2014-4-3
When using scripts, your "M files" use one workspace and you can access all variables.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!