Mex file Fortran 77, create vector of size input argument
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Fortran with MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!