dubo的个人博客分享 http://blog.sciencenet.cn/u/dubo

博文

MATLAB循环写入文件

已有 3964 次阅读 2013-12-26 22:51 |个人分类:matlab|系统分类:科研笔记|关键词:学者

clc;clear;

load ener1.data

ener=ener1;

len=length(ener)^(1/3);


len1=51;

max(ener(:,5))

min(ener(:,5))

cc=reshape(ener(:,5),len1,len1,len1);

% image(cc);figure(gcf);

ccccc=0:(len1-1);

[X,Y,Z] = meshgrid(ccccc,ccccc,ccccc);

% slice(X,Y,Z,cc,[25],25,[25])

 

%%


count=0;

for i=-62:5:175

   cla;

p = patch(isosurface(X,Y,Z,cc,i));

isonormals(X,Y,Z,cc,p)

daspect([1 1 1])

isocolors(X,Y,Z,flipdim(cc,2),p)

shading interp

grid off

axis(volumebounds(X,Y,Z,cc))

axis tight

view(3)

camlight

lighting phong

count=count+1;

name=['U=',num2str(i)];

legend(name,'North');

name=[num2str(count),'.jpg'];

saveas(gcf,name)

end





https://m.sciencenet.cn/blog-464042-753219.html

上一篇:关闭WINDOWS的 watch dog 功能(cuda可以在windows不限时运行)
下一篇:简历模板

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-6-2 17:37

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部