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

Is there a way to vectorize the for loop below? How can I use normpdf with a vector input? 
"Lan" wrote in message <ipmm71$p7b$1@fred.mathworks.com>... 
"Roger Stafford" wrote in message <ipo9s4$rkm$1@fred.mathworks.com>... 
"Roger Stafford" wrote in message <ipo9s4$rkm$1@fred.mathworks.com>... 
"Lan" wrote in message <iprd0k$geb$1@fred.mathworks.com>... 
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.