|
"Yumnam Kirani" <kirani.singh@gmail.com> wrote in message
news:idsuj9$m89$1@fred.mathworks.com...
> How many ways do you know about generating a column array?
>>>(1:14)' % is the one we usually use
> But did you know that we can generate such column of arrays using the
> color function provided in Matlab? Wondered! I am not telling lie. You use
> the following commands to generate columns of arrays.
>>> color whatisyourname
COLOR is a helper function for Optimization Toolbox and isn't really
intended to be generally used.
If you're looking to create arbitrary matrices, there are plenty of other
functions you can use. If you type "help elmat" without the quotes at the
MATLAB prompt, you'll see a number of different functions -- everything from
ONES and ZEROS to more exotic functions like VANDER, ROSSER, and one of my
personal favorites, GALLERY.
Other options include RAND, RANDN, and RANDI which generate random uniform,
normal, or uniform integer data respectively.
--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlab.wikia.com/wiki/FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com
|