Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how do i print the 10 figures seprately ?

조회 수: 3 (최근 30일)
STUDENT
STUDENT 2019년 10월 23일
마감: MATLAB Answer Bot 2021년 8월 20일
clear;clc
M = rand(1000,10);
M = cos(2*pi*M);
for c = 1:size(M,2)
figure(c)
hist(M(:,c))
title(num2str(c))10')
% print images to file e.g. 1.png to 10.png
end
csvwrite('randomData.csv',M)

답변 (1개)

Shubham Gupta
Shubham Gupta 2019년 10월 24일
Try:
clear;clc
M = rand(1000,10);
M = cos(2*pi*M);
for c = 1:size(M,2)
figure(c)
hist(M(:,c))
title(num2str(c))
print(num2str(c),'-dpng')
end
csvwrite('randomData.csv',M)
Hope it helps !

이 질문은 마감되었습니다.

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by