Unfortunately, I don't know the Matlab interface well enough to detemine how that works.
--
Mats
Printable View
Unfortunately, I don't know the Matlab interface well enough to detemine how that works.
--
Mats
would that work in c?
EDIT:
lets say i hadCode:int foo(uInt8 *passed)
uInt8 array[320*240];
passed = array;
return 0;
Sort of; passed would be a pointer to array. Unfortunately, once you hit return 0, that array ceases to exist, so now you have a pointer to nowhere in particular. You would need passed = malloc(320*240*sizeof(uInt8)) instead, since that malloc'ed memory will remain until you free it.
The type is wrong. This is 2D array, so the type would be uInt8 (*)[240].