MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Generate random sample 

Generate a random sample..from N samples and it should be even always, what should i add it i dont wana use loop thinng 
"kk KKsingh" <akikumar1983@gmail.com> wrote in message <hmrs1o$jhb$1@fred.mathworks.com>... 
In the my algorithm i always need some odd number other wise my algorithm gives me error later....if z is even like suppose if z is 7 i want it to become 8 or 6.....it will ease my algorithm......And with below mention algorithm it gives me odd most of time 
On Mar 5, 2:39 pm, "kk KKsingh" <akikumar1...@gmail.com> wrote: 
kk KKsingh wrote: 
No tags are associated with this thread.
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.