Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

how do i print the 10 figures seprately ?

1 Ansicht (letzte 30 Tage)
STUDENT
STUDENT am 23 Okt. 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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)

Antworten (1)

Shubham Gupta
Shubham Gupta am 24 Okt. 2019
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 !

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by