MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > vertorize a loop 

Hey everyone, 
nchoosek(1:5,2) 
"Matt J" wrote in message <is8t9c$oml$1@newscl01ah.mathworks.com>... 
"Gareth Lennox" <celtlen@yahoo.co.uk> wrote in message <is8ud0$ruu$1@newscl01ah.mathworks.com>... 
"Gareth Lennox" <celtlen@yahoo.co.uk> wrote in message <is8ud0$ruu$1@newscl01ah.mathworks.com>... 
"Roger Stafford" wrote in message <is97qs$lt9$1@newscl01ah.mathworks.com>... 
"Gareth Lennox" <celtlen@yahoo.co.uk> wrote in message <is99dg$pmr$1@newscl01ah.mathworks.com>... 
> Your forloop code wouldn't work for me unless 'iter' is equal to one greater than the number of columns in 'possible', which is the case in all the examples you have shown, so I have written it to be just that: 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.