Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Rotate cylinder

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-18-2016
12:41 PM

07-18-2016
12:41 PM

Hi,

I have a cylinder defined as follows:

and I would like to rotate it around the z-axis and represent it in a 3d graph.

How can I do it in Mathcad 15?

Thanks in advance,

Enrique

Solved! Go to Solution.

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-19-2016
05:39 AM

07-19-2016
05:39 AM

You wrote that you wanted to rotate around the x-axis, not the z-axis, didn't you?

The order of your multiplication is wrong. you can't multiply a 3x1 matrix with a 3x3 matrix.

You cannot evaluate the multiplication numerically (thats the reason you get the error message of u, v being unknown) but you must assign the result to another function in the two variables u and v.

Then you plot this function either directly in 3D, or, as I prefer for better control and convenience, using createmesh.

Regards

Werner

4 REPLIES 4

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-18-2016
12:57 PM

07-18-2016
12:57 PM

Re: Rotate cylinder

I am not quite sure what you are asking for.

To rotate you would simply apply/multiply with the appropriate transformation matrix.

If your cylinder is rotated around the z-axis its axis will still stay lying in pi1 (xy-plane).

Are you generally asking how to display a parametric surface in a 3D plot or is your goal an animation showing the rotating cylinder?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-19-2016
02:18 AM

07-19-2016
02:18 AM

Re: Rotate cylinder

Hola Enrique.

Espero esto sea lo que preguntas.

Buena suerte.

Alvaro.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-19-2016
04:23 AM

07-19-2016
04:23 AM

Re: Rotate cylinder

Hi,

Thanks, that is exactly what I am trying to do.

How did you do it?

I have tried to use the previous matrix but with 3 columns instead of three rows and multiplying it by the following transformation matrix:

I suppose that the mistake should be something very simple. Sorry for that.

Thanks and regards,

Enrique

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-19-2016
05:39 AM

07-19-2016
05:39 AM

You wrote that you wanted to rotate around the x-axis, not the z-axis, didn't you?

The order of your multiplication is wrong. you can't multiply a 3x1 matrix with a 3x3 matrix.

You cannot evaluate the multiplication numerically (thats the reason you get the error message of u, v being unknown) but you must assign the result to another function in the two variables u and v.

Then you plot this function either directly in 3D, or, as I prefer for better control and convenience, using createmesh.

Regards

Werner

Top Tags