Calling the results from two scripts in one third script
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Sergio Manzetti
am 31 Jul. 2017
Bearbeitet: Stephen23
am 31 Jul. 2017
Hello, I have two scripts which both generate a result, one script is called 1.m and the second 2.m.
Each generates the result defined by "res" in each of the scripts.
I'd like to multiply the two "res" from 1.m and 2.m in a third script, 3.m. How can I do that?
Thanks
1 Kommentar
Akzeptierte Antwort
ES
am 31 Jul. 2017
script3.m
script1;%Running script1.m
a = res;%storing value of res in a
script2;%Running script2.m
b = res;%storing value of res in b
c=a*b;
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!