I am writing a function, which is suppose to give the result of the following if loop:
s=some scalar
i=some scalar ;
if y(s,i)==L
U(1,i)==0
else disp('Never binding') ;
end
How can I store the "answer" so that the name given to the answer is the output of the function?
for example: ans=R and function R=myfunction(i,s)
Is this possible?
Thank you
Aucun commentaire:
Enregistrer un commentaire