Hi I have a for loop. The result of every iteration is a rowvector. I want all rowvectors of the for loop stored as one matrix. Each row is the result of one iteration.
Simplified example:
if trueX= 1:0.1:2;for i = 1:length(X)A=4B= 1:5Y= A.*X(i)+Bendend
The end result shoud be an 11 x 5 matrix. Indexing will give errors, so will starting with an empty array.
Best Answer