What is the best way to define an output vector in this case?
2 views (last 30 days)
- I run 1000 loops
- For each loop, I generate 10 dimensional vector as an output
- I want to create a 1000*10 dimemsional vector that records outputs from 1000 loops
- Then I want to create a histogram of the output vector, etc
What would be the best way to define an output vector in this case?
David Hill on 20 Jun 2022
I assume you mean a 10-element vector.
yourVector=;%computation to compute your vector
yourMatrix(k,:)=yourVector;%this will by 1000x10 matrix containing each loop's vector