[英]how to save gplot output to file in matlab?
你們能建議將 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)
我猜你想把 output 這個數字放到一個文件中:
saveas(fig_handle, 'filename','bmp')
要么
print('-dbmp',fig_handle)
訣竅是在調用 gplot 之前你應該得到一個圖形句柄
fig_handle = figure
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.