資源簡介
matlab obj_write 簡單實用 如果有資源分0選項也是不錯的
代碼片段和文件信息
function?obj_write(filenameverticesfaces?)??
%TEST?Summary?of?this?function?goes?here????
%??write?matrix?to?file????
??
vertices=vertices‘;??
faces=faces‘;??
fid=fopen(filename‘a‘);????
????
[xy]=size(vertices);????
????
?for?i=1:x??
????fprintf(fid‘v?‘);??
????for?j=1:y-1????
????????fprintf(fid‘%f?‘vertices(ij));????
????end????
????fprintf(fid‘%f\r\n‘vertices(
- 上一篇:matlab RGB 色彩空間模型
- 下一篇:自適應中值濾波MATLAB
評論
共有 條評論