how to plot controlchart function into axes GUI

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 日

1 投票

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 件)

カテゴリ

ヘルプ センター および File ExchangeOptimization Toolbox についてさらに検索

質問済み:

2018 年 9 月 13 日

コメント済み:

2018 年 9 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by