Turning a list of answers into a single array
Show older comments
I would like to know how I can(if I can) put my answers into a single matrix/array... for example: ans=12 ans=13 and=73 ans=59 and so on, and would like it in the form [12;13;73;59]
2 Comments
per isakson
on 20 Oct 2014
How does ans get its successive values?
John
on 20 Oct 2014
Edited: Image Analyst
on 20 Oct 2014
Accepted Answer
More Answers (1)
Azzi Abdelmalek
on 20 Oct 2014
Example
a=zeros(1,10);
for k=1:10
a(k)=sin(k);
end
Categories
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!