Stuart’s MATLAB Videos

Watch and Learn

Basics: Making a vector the MATLAB way

I recently received an email asking me a question about how to create an array that is composed of different outputs from functions. The user was new to MATLAB, but had a background in programming other languages. This was evident in his code, which used the scalar approach required of languages like C. In this video, I show how we can use vector indexing in MATLAB to express his code in a much more natural way.
|
  • print

댓글

댓글을 남기려면 링크 를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.