mex problems

Started by September 20, 2005
I have some problems using c-code in Matlab.
I'm trying to implement a lot of filterbank on some pictures (352*288 matrix of doubles), where the filterbank is written in c.

I have the following questions:

1. How can I use the mxPrintf to print some of the elements after using the mxGetPr-command? When using this I get a *double, but my c-skills are rather poor...

2. The filterbank (which I have not written myself) expects the matrix to contain float-values, how can I change this without losing information?

Hope someone out there can help