I have two matlab script files .m (not function files) and if I want to call another script in my current script, which command should I use? Thank you.
In script test1.m put this: function test1 disp('test 1')
aaa=111; test2( aaa );
end
In test2.m put this, then run test1.m: function test2(aaa) fprintf('test 2 aaa=%d !!!\n', aaa ) end