06.08.2013 Views

内容简介作者简介 - 科学与工程计算系

内容简介作者简介 - 科学与工程计算系

内容简介作者简介 - 科学与工程计算系

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

}<br />

return(1);<br />

}<br />

mxDestroyArray(pa1);<br />

mxDestroyArray(pa2);<br />

mxDestroyArray(pa3);<br />

if (matClose(pmat) != 0)<br />

{<br />

printf("Error closing file %s\n",file);<br />

return(1);<br />

}<br />

printf("Done\n");<br />

return(0);<br />

//--------------------------主程序------------------------------int<br />

main()<br />

{<br />

int result;<br />

}<br />

result = create("mattest.mat");<br />

return (result==0)?EXIT_SUCCESS:EXIT_FAILURE;<br />

(2)<br />

cd d:\mywork<br />

mcc -p exm12022_1.cpp<br />

(3)<br />

clear<br />

cd d:\mywork<br />

!exm12022_1<br />

Creating file mattest.mat...<br />

Done<br />

load mattest.mat<br />

who<br />

Your variables are:<br />

GlobalDouble LocalDouble LocalString<br />

11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!