MEX Function Logical to integer type conversion
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi, Suppose I have a matlab function which I am calling from mex files is returning logical matrix (or variables) . I want to make complex numbers using half of these entries as real and other half as imaginary. I want to convert logical variables into integer . Is there a way to do. Assigning directly is not working. I also tried explicit type conversion (getting zero array as an output). I am using mxCreateNumericMatrix to generate my integer matrix and mxCreatelogicalMatrix for getting logical values.
2 comentarios
James Tursa
el 5 de Oct. de 2012
Could you show how you are attempting to "assign directly"? Is your real/imaginary data interleaved in memory?
Respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!