how to plot with function?
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
Hi ı created plot function to represent monte carlo method. ı want to represent 3 graphs but programm gives me the last functions graph.Additionally ı would like to save my graph as a pdf but different directory.Could you please help me?
names={'k1_1','Tstat_1'} %%ı defined names in aonther m file
function A=my_graph(y_values,h,M,names)
pp_folder = 'C:\Users\user\Desktop\Matlab_Borgwarner\Zusatzdaten Auswertung\Ergebnisse\';
lower=min(y_values)
upper=max(y_values)
xc=lower:(upper-lower)/99:upper;
n=hist(y_values,xc);
A=bar(xc,n./(((upper-lower)/99)*h*M),1)
print(A,'-dpdf','-r1200',pp_folder,'name');
Antworten (1)
Stalin Samuel
am 12 Aug. 2015
0 Stimmen
3 Kommentare
cemsi888
am 12 Aug. 2015
Stalin Samuel
am 12 Aug. 2015
before each plot statement use the command 'figure'
cemsi888
am 12 Aug. 2015
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!