Using object orientated programming

3 Ansichten (letzte 30 Tage)
Travis Smith
Travis Smith am 17 Okt. 2016
Bearbeitet: Prasad Mendu am 19 Okt. 2016
I have to draw a n-pointed and n-sized star using a turtle which basically functions as a pen that can be told to draw a certain length and to rotate to draw in different directions. It should work as a function where the user inputs the size and number of points and the turtle draws the star.
  1 Kommentar
Guillaume
Guillaume am 17 Okt. 2016
Bearbeitet: Guillaume am 17 Okt. 2016
Do it in LOGO. Done in 8 lines of code!
More seriously, what is your question and where does OOP figure into this?
Hopefully, you're not asking for somebody to do your homework for you.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Prasad Mendu
Prasad Mendu am 19 Okt. 2016
Bearbeitet: Prasad Mendu am 19 Okt. 2016

Kategorien

Mehr zu Instrument Control Toolbox Supported Hardware finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by