Error using cdfplot in App Designer

조회 수: 7 (최근 30일)
Andrew Feenan
Andrew Feenan 2022년 7월 7일
댓글: Andrew Feenan 2022년 7월 12일
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