How to do running another .m file that calls this .m file?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
x = [5 10 12 3];
y = [11 8 3 3];
plot(x,y, 'g')
0 Kommentare
Antworten (1)
Chunru
am 9 Dez. 2021
Save the followint into a file, for example, 'my_script.m':
x = [5 10 12 3];
y = [11 8 3 3];
plot(x,y, 'g')
In a separate script, for example, 'another_script.m':
run('myscript.m') % to run your first script in second script
1 Kommentar
Siehe auch
Kategorien
Mehr zu Files and Folders 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!