matlab中調用c語言

下面是matlab使用mex調用c語言的例子。web m-code: xbinary_create.msvg x = 1:5; fid = fopen('xbinary.bin','w'); fwrite(fid, x, 'double'); fclose(fid); C-mex code: xbinary_read.ccode #include "mex.h" #include <stdio.h
相關文章
相關標籤/搜索