I was wondering if there is away to reference a m file to be used in a nother m file.
E.g. i have a m file:
function [Fexp] = exponential_feed
t = [0:1:15];
Fexp = 0.8*exp(0.03*t);
I also have another m-file where in the worksapce i ahve to input fermsettings.flow = Fexp.
I was wondering if i can put into the 1st m file, so when i run it i dont have to input it into the workspace.