access value from another file
Ältere Kommentare anzeigen
sir i have 2 m files one is
function mm
r=[1 2 3]
end
saved with name mm.m
the other is
function nn
% some code. I need r!
end
saved with name nn.m
I want to access value of r in file nn.m.
What is statement to access this r???
Akzeptierte Antwort
Weitere Antworten (1)
Wayne King
am 28 Mär. 2014
0 Stimmen
Why don't you have the function, nn.m, output the value of r, then the function mm can use that value. That is the best way to do it.
Alternatively, look at the help for global
1 Kommentar
Jitesh Bhanushali
am 28 Mär. 2014
Kategorien
Mehr zu MATLAB Report Generator finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!