how automatically label multiple outputs in the loop?
4 views (last 30 days)
hi how automatically label multiple outputs in the loop? I do not know it is possible or not... may be it is very basic...
I mean basically
here the outputs
I want to label those x st
Dr. Seis on 20 May 2013
If you know how many elements in x there will be (3 in your example), then it is best to initialize the output:
x = zeros(3,1); % 3 rows and 1 column of zeros
Then perform your calculations:
for i = 1 : 3
x(i) = i^2;