Matlab小技巧

记录一些用Matlab的技巧。

//imshow全屏
subplot(1,3,3); imshow(topSketMat); hold on;
set(gcf, 'units', 'normalized', 'outerposition', [0 0 1 1]);

 

//保存handle为图片,并且关闭figure
sketCnrPngH = imshow(1 - bwSket); hold on;
for i = 1 : size(cornerA, 1)
    plot(cornerA(i,2), cornerA(i,1), 'r.'); hold on;
    text(cornerA(i,2), cornerA(i,1), num2str(i), 'Color', 'green'); hold on;
end
plot(sket_articu_cont(1:n_total_samps, 1), sket_articu_cont(1:n_total_samps, 2), 'b.');
saveas(sketCnrPngH, 'F:\scDebug\input\input.png');
close(ancestor(sketCnrPngH, 'figure'));

 

你可能感兴趣的:(Matlab小技巧)