필터 지우기
필터 지우기

Help with plotting shape functions?

조회 수: 3 (최근 30일)
Brian
Brian 2012년 10월 18일
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개)

카테고리

Help CenterFile Exchange에서 Scalar Volume Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by