how to plot controlchart function into axes GUI

조회 수: 4 (최근 30일)
Safwana Razak
Safwana Razak 2018년 9월 13일
댓글: Safwana Razak 2018년 9월 14일
axes(handles.axes1);
p = controlchart(re,'charttype','s');
xlabel('Airflow (ft^3/min)')
ylabel('Frequency (counts)')
title('Airflow Histogram')
legend('off')
when i run guide new window open. i want the graph inside my axes in GUI
thanks
  댓글 수: 1
Jan
Jan 2018년 9월 13일
Today I've used the "{} Code" button to format your code.

댓글을 달려면 로그인하십시오.

채택된 답변

Jan
Jan 2018년 9월 13일
편집: Jan 2018년 9월 13일
See: doc controlchart (link)
parent — The handle of the axes to receive the control chart plot.
Default is to create axes in a new figure. Not permitted if there are
multiple chart types.
So try to replace
axes(handles.axes1);
p = controlchart(re,'charttype','s');
by
p = controlchart(re,'charttype','s', 'parent', handles.axes1);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Bar Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by