The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How to write a matlab code for a cylinder
Replies: 2   Last Post: Mar 15, 2013 11:42 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 2,359
Registered: 12/6/04
Re: How to write a matlab code for a cylinder
Posted: Mar 15, 2013 1:42 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Ko" wrote in message <kht93b$3vp$>...
> I'd like to write a Matlab code that would create a cylinder standing on a plane.
> Radius = 0.5
> Height = 3
> x-coordinate = 20
> y-coordinate = 15
> Any suggestion will be greatly appreciated....

Well, you've just defined it above. So, what do you mean by "create" it? If you mean plot it, then at the MATLAB command line type:

doc polar

You may also want to look at:

doc cart2pol
doc pol2cart

or some of the others at the bottom of the help document in the "See also" section.

You might also search the MATLAB FEX at:


There are programs for "plot a cylinder" and "draw a cylinder" to name a few.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.