Mex file Fortran 77, create vector of size input argument
Show older comments
I am trying to couple fortran 77 code with Matlab. The matlab input is a vector of an unknown size. To work with that vector in Fortran 77 I have to copy the vector to a fortran vector. What I cannot figure out is how to make the vector of size $n$ where $n$ is the size of the input vector of if need be a user supplied number.
I tried REAL*8 V(N), where N is later defined by N = mwSize(PRHS(-a number-)), but that did not compile.
Is this even possible?
Accepted Answer
More Answers (0)
Categories
Find more on Fortran with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!