Error using cdfplot in App Designer
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Andrew Feenan
el 7 de Jul. de 2022
Comentada: Andrew Feenan
el 12 de Jul. de 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 comentarios
Respuesta aceptada
Kevin Holly
el 7 de Jul. de 2022
Editada: Kevin Holly
el 7 de Jul. de 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)
Más respuestas (0)
Ver también
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!