Plotting in MatLab App Builder - no x values?

조회 수: 1 (최근 30일)
Noor Fakih
Noor Fakih 2020년 7월 1일
답변: Sugar Daddy 2020년 7월 2일
I am building an app in MatLab and have a UItable and a UIAxes. I finally got it to connect and plot what is on the table and update when the values in the table change, but ONLY Y values.
How can I plot my x and y values???
plot(app.UIAxes,y2); <- this is the piece of code that plots it
plot(app.UIAxes,x2, y2); does not work
  댓글 수: 2
Sugar Daddy
Sugar Daddy 2020년 7월 1일
insert a breakpoint at that line in code view and see if the size of x2 and y2 are same
Noor Fakih
Noor Fakih 2020년 7월 1일
they are!

댓글을 달려면 로그인하십시오.

채택된 답변

Sugar Daddy
Sugar Daddy 2020년 7월 2일
Select the 2nd Option

추가 답변 (1개)

SC
SC 2020년 7월 1일
  댓글 수: 1
Noor Fakih
Noor Fakih 2020년 7월 1일
No, I do want a 2D plot. But I am unable to specify x-values.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by