Stuart’s MATLAB Videos

Watch and Learn

MATLAB Basics video: Storing data in a matrix from a loop

I was recently answering a question that came in from a MATLAB user on this blog. In the end, the question was really one where he was doing a calculation and storing the result in scalar Y. When he was done with the loop, he only had the final value of Y but not all of them that he had calculated on the way. The solution to this was to store each value of Y into a vector. This video is meant for new users to show how to do that.

Also note, that I have been reformatting these videos and tagging them as videos. If you click on videos under categories to the right, you can see all the videos in one place.

Other videos have been gathered here:
https://blogs.mathworks.com/pick/category/video/

Other MATLAB Basics posts have been gathered here:
https://blogs.mathworks.com/pick/category/matlab-basics/

|
  • print

评论

要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。