Comma-Separated Lists
In this section...
“What Is a Comma-Separated List?” on page 2-78
“Generating a Comma-Separated List” on page 2-78
“Assigning Output from a Comma-Separated List” on page 2-80
“Assigning to a Comma-Separated List” on page 2-81
“How to Use the Comma-Separated Lists” on page 2-83
“Fast Fourier Transform Example” on page 2-85What Is a Comma-Separated List?
Typing in a series of numbers separated by commas gives you what is called a comma-
separated list. The MATLAB software returns each value individually:1,2,3ans =1ans =2ans =3Such a list, by itself, is not very useful. But when used with large and more complex data
structures like MATLAB structures and cell arrays, the comma-separated list can enable
you to simplify your MATLAB code.Generating a Comma-Separated List
This section describes how to generate a comma-separated list from either a cell array or
a MATLAB structure.2 Program Components