[Insight-developers] How to read .Mat File using ITK + C++

Humayun Irshad humayun.irshad at gmail.com
Wed Dec 8 06:31:33 EST 2010


Dear all,

My code from .mat file readingis here:

#include "mat.h"

int main(int argc, char **argv)
{
     MATFile *pmat;
     mxArray *pa;
     pmat = matOpen("1.mat", "r");
     if (pmat == NULL) {
          printf("Error opening file\n");
          return(1);
     }
     return 0;
}

when i compiled and build this code then following error come

error LNK2019: unresolved external symbol _matOpen referenced in function
_main

Can any body help me who can i read .mat file in ITK + C++. please help me

-- 
-- 
Best Regards,

Humayun Irshad

Pakistan

Cell: +92-333-6128780
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20101208/338665ad/attachment.htm>


More information about the Insight-developers mailing list