Error using cdfplot in App Designer
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Andrew Feenan
le 7 Juil 2022
Commenté : Andrew Feenan
le 12 Juil 2022
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
0 commentaires
Réponse acceptée
Kevin Holly
le 7 Juil 2022
Modifié(e) : Kevin Holly
le 7 Juil 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)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!