フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to plot with function?

3 ビュー (過去 30 日間)
cemsi888
cemsi888 2015 年 8 月 12 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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');

回答 (1 件)

Stalin Samuel
Stalin Samuel 2015 年 8 月 12 日
  3 件のコメント
Stalin Samuel
Stalin Samuel 2015 年 8 月 12 日
before each plot statement use the command 'figure'
cemsi888
cemsi888 2015 年 8 月 12 日
thanx a lot

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by