MATLAB Answers

how to plot controlchart function into axes GUI

3 views (last 30 days)
Safwana Razak
Safwana Razak on 13 Sep 2018
Commented: Safwana Razak on 14 Sep 2018
p = controlchart(re,'charttype','s');
xlabel('Airflow (ft^3/min)')
ylabel('Frequency (counts)')
title('Airflow Histogram')
when i run guide new window open. i want the graph inside my axes in GUI
  1 Comment
Jan on 13 Sep 2018
Today I've used the "{} Code" button to format your code.

Sign in to comment.

Accepted Answer

Jan on 13 Sep 2018
Edited: Jan on 13 Sep 2018
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
p = controlchart(re,'charttype','s');
p = controlchart(re,'charttype','s', 'parent', handles.axes1);

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by