How can I use variable of one M-file into other M-file ?

조회 수: 1 (최근 30일)
Dipten
Dipten 2014년 4월 3일
편집: Andreas Goser 2014년 4월 3일
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 ?

답변 (2개)

Chandrasekhar
Chandrasekhar 2014년 4월 3일
you can make functions and pass as arguments or u can declare them as global.

Andreas Goser
Andreas Goser 2014년 4월 3일
편집: Andreas Goser 2014년 4월 3일
Please review the documentation about scripts and functions and maybe about global variables.
When using scripts, your "M files" use one workspace and you can access all variables.

카테고리

Help CenterFile Exchange에서 Variables에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by