MATLAB Answers

Trisurf in App Designer

23 views (last 30 days)
Jonas Widmer
Jonas Widmer on 6 Apr 2018
Commented: Humam Helfawi on 14 Feb 2019
Hi all,
I try to plot a polygon mesh via trisurf() in app-designer into the axes object. However, I'm not sure if this is possible. Could someone help me to do that, please?
Best, J

  0 Comments

Sign in to comment.

Answers (2)

Chris Portal
Chris Portal on 14 Apr 2018
TRISURF doesn't appear to support an axes to be passed in as the first input argument. Instead, it can take it via PV pairs as follows:
trisurf(my_Data, 'Parent', app.View)

  2 Comments

Michal Kurzynka
Michal Kurzynka on 18 Apr 2018
Hi, After calling:
trisurf(my_Data, 'Parent', app.View)
MATLAB returns error:
Error using patch
Functionality not supported with UIAxes. For more information, see Graphics Support in App Designer.
Error in trisurf (line 90)
h = patch('faces',trids,'vertices',[x(:) y(:) z(:)],'facevertexcdata',c(:),...
Is there any way around this?
Humam Helfawi
Humam Helfawi on 14 Feb 2019
This solved the problem for me.. Thanks!

Sign in to comment.


Jonas Widmer
Jonas Widmer on 10 Apr 2018
No answer to this? Would appreciate every help! Best, J

  0 Comments

Sign in to comment.