Sequence of slice() images
2 ビュー (過去 30 日間)
古いコメントを表示
How can I automatically save a sequence of slice() images? It doesn't seem to fall under the same approach that plot() images do
0 件のコメント
採用された回答
Walter Roberson
2016 年 1 月 24 日
It is exactly the same, getframe() / imwrite(), or print(), or saveas()
2 件のコメント
Walter Roberson
2016 年 1 月 24 日
slice() returns a graphics object, not an array of data. imwrite() is only for writing arrays of data. One possibility using imwrite() is
x=1:1:3;
[X,Y,Z]=meshgrid(x,x,x);
u=sin(X);
slice(X,Y,Z,u,1,1,1);
pause(0.01); %draws and gives time to render
h = getframe(gca);
imwrite(h,'test.jpg');
その他の回答 (1 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!