sorry to ask. if I sub 2 variables(x,y) from the currently running first.m into second.m, and second.m will return 2 variables (a,b) back to first.m. I should write this in first.m:
[a,b]=second(x,y);
PS.the location of first.m and second.m is the same.
error message is: ??? Attempt to execute SCRIPT second as a function: C:\second.m
Best Answer