Doug Hull, MathWorks
(Originally posted on Doug's MATLAB Video Tutorials blog.)
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.
Recorded: 23 Feb 2010
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .Select web site
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.