From: shilpa sarvaiya on
I have a C project which I ran in Microsoft Visual Studio. It takes a text file(image pixel) and some parameters as input and generates a text file in return. Both input and output text files are of same dimension.
Now I converted this C project file into DLL so that I can execute the C project to generate the image text file via MATLAB. Again the program executes well but a problem is encountered. While calllib is used to call the function from DLL( which is responsible to generate the output text file), the output generated loses some pixel values. ie the output dimension is not same as that of the input. Error msg : Index exceeds matrix dimensions. Has anyone encountered the same problem? Need some help regarding this problem.

thanks...