The function files run fine separately, and they return the correct values when i run the script file. However it can't seem to plot the values, I've attempted to name the values returned by the separate functions but it doesn't help. e.g
T=20:10:150;
[r1] = MyFunction1(T);
[r2] = MyFunction2(T);
subplot(2,1,1)
plot(T,r1)
subplot(2,1,2)
plot(T,r2)
4 Comments
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/348062-i-m-trying-to-write-a-script-file-that-compares-the-data-from-two-different-function-files-as-soon#comment_467973
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/348062-i-m-trying-to-write-a-script-file-that-compares-the-data-from-two-different-function-files-as-soon#comment_467973
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/348062-i-m-trying-to-write-a-script-file-that-compares-the-data-from-two-different-function-files-as-soon#comment_467986
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/348062-i-m-trying-to-write-a-script-file-that-compares-the-data-from-two-different-function-files-as-soon#comment_467986
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/348062-i-m-trying-to-write-a-script-file-that-compares-the-data-from-two-different-function-files-as-soon#comment_467990
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/348062-i-m-trying-to-write-a-script-file-that-compares-the-data-from-two-different-function-files-as-soon#comment_467990
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/348062-i-m-trying-to-write-a-script-file-that-compares-the-data-from-two-different-function-files-as-soon#comment_468045
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/348062-i-m-trying-to-write-a-script-file-that-compares-the-data-from-two-different-function-files-as-soon#comment_468045
Sign in to comment.