how to plot controlchart function into axes GUI
1 次查看(过去 30 天)
显示 更早的评论
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
采纳的回答
Jan
2018-9-13
编辑:Jan
2018-9-13
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 Center 和 File Exchange 中查找有关 Graphics Object Properties 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!