Error using cdfplot in App Designer

7 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Kevin Holly
Kevin Holly il 7 Lug 2022
Modificato: Kevin Holly il 7 Lug 2022
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)

Più risposte (0)

Categorie

Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange

Prodotti


Release

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by