hi, I am doing my project in image processing,the main code is written in c language and i have to use matlab functions in between the prog I have written the following prog and wanted to know if it would work, #include<stdio.h> #include"engine.h" Engine *engOpen(const char *startcmd) void main( ) { Engine *ep; mxArray *T=NULL,*startcmd=NULL; char buffer[256], str [256] ; engOpen("matlab"); if(!(ep=engOpen("\0"))) { printf("can't open matlab"); exit(-1 ); } mxSetName(im,"T");/* im is a matrix of size 8*8*/ engPutArray(ep,T); engEvalString(ep,[ A,B,C,D]=DWT2(T,"haar"); when i tried executing the above programme i got a linker error message"undefined symbol _engOpen in module" .also i am confused as to how to retrieve the computed values back into the main c programme.kindly help thanking you, nirupama venkataraman |
calling matlab functions from c
Started by ●March 5, 2003