Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
how do i print the 10 figures seprately ?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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)
0 Commenti
Risposte (1)
Shubham Gupta
il 24 Ott 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 !
0 Commenti
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!