How can I draw 3d graph from 4 variables?

I have a robot arm with 4 Degrees of freedom and I want to draw its work space like the image below
I have 3 functions that convert from q1,q2,q3,q4 to x,y,z, and I have the range of q Please help me to draw this volume.

7 Comments

How can we do that? How can we help you? If someone asked you what you asked us, and supplied what you supplied, would you be able to help them?
As Image Analyst has indicated, your description is woefully lacking in detail and clarity. However it appears to me to also contain contradictory aspects. You ask to portray with a three-dimensional graph the "volume" of an arm with four degrees of freedom. Yet you display a graph which is the surface of a volume apparently determined by only three parameters, not four.
If you want an answer to your question, you should give far more details and you should clarify the apparent discrepancy between the number of parameters evident in the displayed graph and what you are asking for. In particular, you should certainly give us those three equations you say you have that convert from the four parameters to cartesian coordinates.
I have a function of conversion from q1,q2,q3, and q4 to x,y,z [x y z] = converttoxyz(q1,q2,q3,q4); q1=(-90:10:90); q2=(-10:5:10); q3=(-12:3:12); q4=(0:10:90); when I put q3,q4 as constant value, and use mesh generated from q1,q2 I got a surface not a volume, how can I draw this volume?
If you have only two degrees of freedom, then all you can get is a surface.
That being said, you are not answering the questions of Roger and Image Analyst.
Thanks Jose-Luis but I have 4 DOF not 2, Kindly check the attached Kinematics structure of the robot led
<<
>>
But I use only the upper 4 DOF

Sign in to comment.

Answers (0)

Categories

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

Asked:

on 6 Sep 2014

Commented:

on 12 Sep 2014

Community Treasure Hunt

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

Start Hunting!