How to put trisurf into my matlab app

I tried to put my trisurf chart into my matlab app. But it couldnt work.
trisurf(app.UIAxes, tri,X,Y,Z,p+Pmin);
trisurf(tri,X,Y,Z,p+Pmin,app.View);
How can I use trisurf with UIAxes or Matlab app?

Answers (1)

Joost
Joost on 3 Jun 2020
Edited: Joost on 3 Jun 2020
Please try this:
trisurf(tri, X, Y, Z, p+Pmin, 'Parent', app.View);
or
trisurf(tri, X, Y, Z, p+Pmin, 'Parent', app.UIAxes);
It is probably the latter, it should refer to the axes object on the canvas, not the app itself.

2 Comments

thanks. it solved with "trisurf(tri, X, Y, Z, p+Pmin, 'Parent', app.UIAxes);"
Glad I could help. Please 'Accept' my answer, for future reference.

Sign in to comment.

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products

Asked:

on 3 Jun 2020

Commented:

on 3 Jun 2020

Community Treasure Hunt

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

Start Hunting!