Unfortunately, I don't know the Matlab interface well enough to detemine how that works.
--
Mats
Unfortunately, I don't know the Matlab interface well enough to detemine how that works.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
would that work in c?
EDIT:
lets say i hadCode:int foo(uInt8 *passed) uInt8 array[320*240]; passed = array; return 0;
Last edited by chico1st; 06-24-2008 at 09:43 AM.
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.