Borrar filtros
Borrar filtros

mxGetNumberOfElements causing matlab to force close

2 visualizaciones (últimos 30 días)
ryan
ryan el 2 de Jul. de 2013
I have compiled a mex function that compiled fine, and part of the code is trying to get the size of a string in a cell array of strings. I am using the function: mxGetNumberOfElements, but for some reason this function is causing matlab to force close down. I am passing to it: 'const mxArray *Array_Ptr'. Any help will be greatly appreciated!
  1 comentario
James Tursa
James Tursa el 2 de Jul. de 2013
Please post your code and then we can suggest corrections. If you are passing in a cell array of strings, you would need to use mxGetCell first, and then mxGetNumberOfElements on the result of the mxGetCell call.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by