Help with plotting shape functions?

3 次查看(过去 30 天)
Hello, thanks for reading this,
I was wondering if you could help me with plotting shape functions. I have shape I want to graph in matlab, represented by the shape function:
(pz*15*15*15+2*(px*px+2.25*py*py)*(px*px+2.25*py*py)<0)&&(px*px>0.01*15*15)&& (pz>-2.3*15)
I got this, along with other shape functons, from some C++ code I inherited. I think if I can learn how to plot this, I can do the rest.
I started with trying to make a symbolic function out of this, defined by the code:
syms px py px v
and to make a symbolic function:
sym('v = ...')
I was thinking a ezplot may be the quickest way of doing this. However, I'm not sure how I would include the and operators, or even if symbolic equations are the best way of doing this problem.
Have any advice? Thanks
EDIT: I think a better way of saying this is I have a 3d volume I want to represent graphically, and I have a set of constraint equations associated with that 3D volume. I was wondering how I can represent my 3d volume given my set of constraint equations.

采纳的回答

Sean de Wolski
Sean de Wolski 2012-10-18
I would skip the symbolic stuff and just use an isosurface.
doc isosurface
  2 个评论
Brian
Brian 2012-10-18
I'll take a look at isosurfaces. How could you model constraint equations as isosurfaces?
Sean de Wolski
Sean de Wolski 2012-10-18
I would generate it as a a bunch of 3d matrices using ndgrid() and then just evaluate that equation on those matrices.

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by