你们可以建议保存/输出gplot到文件的方法。我仍在尝试使用Matlab解决问题。谢谢。
A=[0,1,1,1,1,1,0,0,0;
1,0,1,0,0,0,1,0,0;
1,1,0,1,0,0,1,0,0;
1,0,1,0,1,0,0,1,0;
1,0,0,1,0,1,0,0,1;
1,0,0,0,1,0,0,0,1;
0,1,1,0,0,0,0,1,0;
0,0,0,1,0,0,1,0,1;
0,0,0,0,1,1,0,1,0];
coords=[0 0;
.5 0;
1 0;
0 .5;
.5 .5;
1 .5;
0 1;
.5 1;
1 1];
gplot(A,coords)
答案 0 :(得分:0)
我想你想把这个数字输出到一个文件:
saveas(fig_handle, 'filename','bmp')
或
print('-dbmp',fig_handle)
诀窍是在调用gplot之前你应该得到一个数字句柄
fig_handle = figure