MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > rand() using mexCallMATLAB 

I want to use the existing Matlab rand() function in a Mex function. I have two int variables which determine the size of the array of random numbers. Since I have to use mexCallMATLAB for using the Matlab rand() function, I don't know how to pass the 2 int variables as the prhs[] input to mexCallMATLAB. Any help will be really helpful. 
"Hariprasad" wrote in message <l0s63d$f2e$1@newscl01ah.mathworks.com>... 
"Hariprasad" wrote in message <l0s6ei$krk$1@newscl01ah.mathworks.com>... 
"Hariprasad" wrote in message <l0sbhm$m70$1@newscl01ah.mathworks.com>... 
"James Tursa" wrote in message <l0sjvm$50f$1@newscl01ah.mathworks.com>... 
"James Tursa" wrote in message <l0slcm$ki8$1@newscl01ah.mathworks.com>... 
"Hariprasad" wrote in message <l0u6g1$d3n$1@newscl01ah.mathworks.com>... 
"Hariprasad" wrote in message <l0u80m$8qo$1@newscl01ah.mathworks.com>... 

"Hariprasad" wrote in message <l0ubdf$6o4$1@newscl01ah.mathworks.com>... 
"Hariprasad" wrote in message <l0u80m$8qo$1@newscl01ah.mathworks.com>... 
"James Tursa" wrote in message <l0vn2a$4ob$1@newscl01ah.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.