MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Mex function with more than 1 input and output mul... 

Subject: Mex function with more than 1 input and output multidimensional arrays From: Hariprasad Date: 22 Aug, 2013 05:02:06 Message: 1 of 20 
I'm trying to write a mex function in C which is to be used in a program for further calculations. The function should take a nXm size float array, 1 integer variable as inputs and there are 4 outputs of nXm size each. I'm confused how to use Mex Function in this scenario. Can I do something like this in the main program:  
Subject: Mex function with more than 1 input and output multidimensional arrays From: James Tursa Date: 22 Aug, 2013 07:43:05 Message: 2 of 20 
"Hariprasad" wrote in message <kv460d$44b$1@newscl01ah.mathworks.com>... 
Subject: Mex function with more than 1 input and output multidimensional arrays From: Hariprasad Date: 22 Aug, 2013 09:16:16 Message: 3 of 20 
"James Tursa" wrote in message <kv4fe9$seb$1@newscl01ah.mathworks.com>... 
Subject: Mex function with more than 1 input and output multidimensional arrays From: James Tursa Date: 22 Aug, 2013 15:57:21 Message: 4 of 20 
"Hariprasad" wrote in message <kv4kt0$j6m$1@newscl01ah.mathworks.com>... 
Subject: Mex function with more than 1 input and output multidimensional arrays From: Hariprasad Date: 23 Aug, 2013 05:34:09 Message: 5 of 20 
"James Tursa" wrote in message <kv5cd1$3r0$1@newscl01ah.mathworks.com>... 
Subject: Mex function with more than 1 input and output multidimensional arrays From: James Tursa Date: 23 Aug, 2013 06:56:17 Message: 6 of 20 
"Hariprasad" wrote in message <kv6s8h$apq$1@newscl01ah.mathworks.com>... 
Subject: Mex function with more than 1 input and output multidimensional arrays From: Hariprasad Date: 23 Aug, 2013 07:17:05 Message: 7 of 20 
"James Tursa" wrote in message <kv712h$b0l$1@newscl01ah.mathworks.com>... 
Subject: Mex function with more than 1 input and output multidimensional arrays From: James Tursa Date: 23 Aug, 2013 07:53:06 Message: 8 of 20 
"Hariprasad" wrote in message <kv729h$q75$1@newscl01ah.mathworks.com>... 
Subject: Mex function with more than 1 input and output multidimensional arrays From: Hariprasad Date: 23 Aug, 2013 09:49:05 Message: 9 of 20 
"James Tursa" wrote in message <kv74d2$r4i$1@newscl01ah.mathworks.com>... 
Subject: Mex function with more than 1 input and output multidimensional arrays From: Hariprasad Date: 23 Aug, 2013 09:54:06 Message: 10 of 20 
"James Tursa" wrote in message <kv74d2$r4i$1@newscl01ah.mathworks.com>... 
Subject: Mex function with more than 1 input and output multidimensional arrays From: Hariprasad Date: 23 Aug, 2013 12:27:14 Message: 11 of 20 
"Hariprasad" wrote in message <kv7bfu$589$1@newscl01ah.mathworks.com>... 
Subject: Mex function with more than 1 input and output multidimensional arrays From: James Tursa Date: 23 Aug, 2013 14:45:13 Message: 12 of 20 
"Hariprasad" wrote in message <kv7bfu$589$1@newscl01ah.mathworks.com>... 
Subject: Mex function with more than 1 input and output multidimensional arrays From: James Tursa Date: 23 Aug, 2013 14:58:29 Message: 13 of 20 
"Hariprasad" wrote in message <kv7kf2$5ll$1@newscl01ah.mathworks.com>... 
Subject: Mex function with more than 1 input and output multidimensional arrays From: Hariprasad Date: 23 Aug, 2013 16:26:05 Message: 14 of 20 
"James Tursa" wrote in message <kv7tal$c2i$1@newscl01ah.mathworks.com>... 
Subject: Mex function with more than 1 input and output multidimensional arrays From: Steven_Lord Date: 23 Aug, 2013 19:31:01 Message: 15 of 20 

Subject: Mex function with more than 1 input and output multidimensional arrays From: Hariprasad Date: 24 Aug, 2013 07:41:14 Message: 16 of 20 
"Steven_Lord" <slord@mathworks.com> wrote in message <kv8d9l$dgt$1@newscl01ah.mathworks.com>... 
Subject: Mex function with more than 1 input and output multidimensional arrays From: Hariprasad Date: 24 Aug, 2013 08:12:05 Message: 17 of 20 
"Hariprasad" wrote in message <kv9o2q$7iu$1@newscl01ah.mathworks.com>... 
Subject: Mex function with more than 1 input and output multidimensional arrays From: Steven_Lord Date: 26 Aug, 2013 14:35:18 Message: 18 of 20 

Subject: Mex function with more than 1 input and output multidimensional arrays From: Hariprasad Date: 28 Aug, 2013 10:33:08 Message: 19 of 20 
"Steven_Lord" <slord@mathworks.com> wrote in message <kvfp36$fkp$1@newscl01ah.mathworks.com>... 
Subject: Mex function with more than 1 input and output multidimensional arrays From: Hariprasad Date: 28 Aug, 2013 10:42:08 Message: 20 of 20 
"Hariprasad" wrote in message <kvkjl4$6ck$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.