Hi guys i have really simple question. Lets assume that ı have function with two outputs. In another m file ı would lıke to call thıs function and save outputs of this function seperately in structure. Is it possible? I tried it but ıt saves just first output two times in this structure. I will note simple example in order to explain better.
function[x,y]=myfunction(a,b,c) x=a+b y=x*cIn another m file ı will write for examplestruct. (x)=myfunction(1,2,3)struct.(y)=myfunction(1,2,3)ın structure you will see x=3 y=3 instead of y=9how can i save these variables in structure correctly??
Best Answer