Hello,
I am struggling with this fairly simple loop.
I have an an array with years like the following :
2012 2012 2012 2013 2013 2014 2014 2015
In the loop i want to create a table for each year, but I am not able to do it in a proper way.
I did the following,
s = unique(array(:,1)) v = size(s,1)for i = 1 :vif certain conditions TableName = sum all values in year concerned year.endend
So my question is very simple, how to make this TableName(should contain the year, for example Table2013) change to the year where the conditions is met. i tried to do something like
strcat('Table',num2str(array(i))) = sum all values in year concerned year.
This does not work at all.
Thank you very much
D
Best Answer