Hi there! I have created 2 functions :
function [tk]= time(t,toe)ti=t-toe; if ti>302400; tk= ti-604800; elseif tk<-302400; tk = ti+604800; endend
and the second function :
function [mk] = meanan(mo,a,u,n,tk) mk = mo +((sqrt(u)/sqrt(a^3))+n)*tkend
Now my question is : Can I put this 2 functions in just one function in MATLAB? I've been looking on internet but what I found is NO, it is not possible. Is it right? I cannot put 2,3 or maybe more functions in just one? Thank you!
Best Answer