Error using cdfplot in App Designer

1 次查看(过去 30 天)
Hi,
I am having an issue using the cdfplot function in app designer. plotdata is where the data is stored, I have it setup to plot a specific data set based on a user selection in a UITable column.
When I run the code below I get the "too many input arguemnts" error
cdfplot(app.UIAxes,plotData(:,app.UITable.Data{:,2}));
I also have this setup with a probplot which works fine.
probplot(app.UIAxes,DistributionType,plotData(:,app.UITable.Data{:,2}))
I'd appricite help on this issue.
Andrew

采纳的回答

Kevin Holly
Kevin Holly 2022-7-7
编辑:Kevin Holly 2022-7-7
cdfplot cannot accept app.UIAxes as the first input.
Here is a workaround for using cdfplot in App Designer.
f = figure;
cdfplot(rand(1,10))
h=gca;
h.Children.Parent=app.UIAxes;
app.UIAxes.XLabel.String = h.XLabel.String;
app.UIAxes.YLabel.String = h.YLabel.String;
app.UIAxes.Title = h.Title;
app.UIAxes.GridLineStyle = h.GridLineStyle;
grid(app.UIAxes,"on")
close(f)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by