Help with plotting shape functions?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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.
0 comentarios
Respuesta aceptada
Sean de Wolski
el 18 de Oct. de 2012
I would skip the symbolic stuff and just use an isosurface.
doc isosurface
2 comentarios
Sean de Wolski
el 18 de Oct. de 2012
I would generate it as a a bunch of 3d matrices using ndgrid() and then just evaluate that equation on those matrices.
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!