필터 지우기
필터 지우기

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