필터 지우기
필터 지우기

How can i save the scatter in GUI?

조회 수: 1 (최근 30일)
han han
han han 2020년 8월 2일
답변: Image Analyst 2020년 8월 2일
I want to save the pictures I scatter, and I can name them freely under any path.
But I have no idea.
DefaultBSX = [10 30 50 70 90 110 10 30 50 70 90 110];
DefaultBSY = [15 15 15 15 15 15 35 35 35 35 35 35];
DefaultBSZ = repmat(3,12,1);
scatter(DefaultBSX,DefaultBSY,150,'^','filled')
grid minor
axis([0 120 0 50]);
[FileName, PathName, ~] = uiputfile('*.png', 'Save table as:');
File = fullfile(PathName, FileName);
%saveas(gcf,'Scatter.png') %This is one way. But I want to be more flexible

답변 (1개)

Image Analyst
Image Analyst 2020년 8월 2일
If you have r2020a, use exportgraphics().

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by