MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > No fixed arrays in Fortran / Mex possible? 

Subject: No fixed arrays in Fortran / Mex possible? From: Roland Neumann Date: 28 Jan, 2009 18:28:02 Message: 1 of 16 
I understand that you have to call mxCopyPtrToReal8(t, tr, size) to copy a given matrix from a matlab command to the fortran mex file. Though it seems not allowed to define t as real*8 t(*). 
Subject: No fixed arrays in Fortran / Mex possible? From: NZTideMan Date: 28 Jan, 2009 19:24:46 Message: 2 of 16 
On Jan 29, 7:28=A0am, "Roland Neumann" <software...@o2online.de> wrote: 
Subject: No fixed arrays in Fortran / Mex possible? From: James Tursa Date: 28 Jan, 2009 19:34:02 Message: 3 of 16 
"Roland Neumann" <softwarepca@o2online.de> wrote in message <glq83i$kce$1@fred.mathworks.com>... 
Subject: No fixed arrays in Fortran / Mex possible? From: Roland Neumann Date: 29 Jan, 2009 16:48:02 Message: 4 of 16 
Thank you both. It works like a charm. Unfortunately only until the fortran routine (from netlib.org) is called. It expects real*4, so I defined: 
Subject: No fixed arrays in Fortran / Mex possible? From: NZTideMan Date: 29 Jan, 2009 19:41:20 Message: 5 of 16 
On Jan 30, 5:48=A0am, "Roland Neumann" <software...@o2online.de> wrote: 
Subject: No fixed arrays in Fortran / Mex possible? From: James Tursa Date: 29 Jan, 2009 21:01:03 Message: 6 of 16 
"Roland Neumann" <softwarepca@o2online.de> wrote in message <glsmk2$bta$1@fred.mathworks.com>... 
Subject: No fixed arrays in Fortran / Mex possible? From: James Tursa Date: 29 Jan, 2009 21:06:02 Message: 7 of 16 
NZTideMan <mulgor@gmail.com> wrote in message <00d43882f5bf4578b42e3e4da4e76823@t26g2000prh.googlegroups.com>... 
Subject: No fixed arrays in Fortran / Mex possible? From: Roland Neumann Date: 30 Jan, 2009 17:42:01 Message: 8 of 16 
"James Tursa" <aclassyguywithaknotac@hotmail.com> wrote in message <glt5np$d0m$1@fred.mathworks.com>... 
Subject: No fixed arrays in Fortran / Mex possible? From: James Tursa Date: 30 Jan, 2009 20:53:01 Message: 9 of 16 
"Roland Neumann" <softwarepca@o2online.de> wrote in message <glve59$am0$1@fred.mathworks.com>... 
Subject: No fixed arrays in Fortran / Mex possible? From: James Tursa Date: 30 Jan, 2009 23:12:01 Message: 10 of 16 
> rewind 6 
Subject: No fixed arrays in Fortran / Mex possible? From: Roland Neumann Date: 31 Jan, 2009 15:43:02 Message: 11 of 16 
"James Tursa" <aclassyguywithaknotac@hotmail.com> wrote in message <gm01g1$fc4$1@fred.mathworks.com>... 
Subject: No fixed arrays in Fortran / Mex possible? From: Roland Neumann Date: 4 Feb, 2009 17:46:02 Message: 12 of 16 
Now I came to a interesting point. Threedimensional arrays.... 
Subject: No fixed arrays in Fortran / Mex possible? From: Steven Lord Date: 4 Feb, 2009 17:51:02 Message: 13 of 16 

Subject: No fixed arrays in Fortran / Mex possible? From: James Tursa Date: 4 Feb, 2009 20:06:02 Message: 14 of 16 
"Roland Neumann" <softwarepca@o2online.de> wrote in message <gmck8q$s3a$1@fred.mathworks.com>... 
Subject: No fixed arrays in Fortran / Mex possible? From: Roland Neumann Date: 23 Feb, 2009 13:18:01 Message: 15 of 16 
Just forgot to say THANK YOU for all your help. Now it all runs smoothly and I learned alot about FORTRAN and memory storage from you. 
Subject: No fixed arrays in Fortran / Mex possible? From: Thomas Clark Date: 21 Apr, 2009 14:17:01 Message: 16 of 16 
Should say to all (esp. James) that I found this very useful too... it cleared up some subtleties of the %val construct for me :) 
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.