MATLAB: How build an variable output for the function

concatenate outputdynamic variablesoutputoutput defenition name

Hi
I have a simple function, for exemple:
[ax] = testthat(x,y)
I use this function a lot an need to create a different output name to [ax] for exemple first time the name shold be "a1" second time "b1"… and keep all these output variable availlable.
I try
al=('a':'z').';
[al(3) num2str(1)] = testthat(x,y)
But clearly it is not the good way to make it…

Best Answer

I know it is not the best way... but I realy need to work that way.
I find a solution, I use eval() an other not recommand method but it work for my.
Thank you Star Strider for your fast help!