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

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 ?

Antworten (2)

Chandrasekhar
Chandrasekhar am 3 Apr. 2014

0 Stimmen

you can make functions and pass as arguments or u can declare them as global.
Andreas Goser
Andreas Goser am 3 Apr. 2014
Bearbeitet: Andreas Goser am 3 Apr. 2014

0 Stimmen

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.

Kategorien

Tags

Gefragt:

am 3 Apr. 2014

Bearbeitet:

am 3 Apr. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by