Using turtle to draw a ring of stars

4 ビュー (過去 30 日間)
regina
regina 2015 年 10 月 22 日
回答済み: Image Analyst 2015 年 10 月 22 日
I don't know if turtle is specific to my school but it's a drawing software via matlab
I have a function for drawing a ring of stars (where i have a separate function to draw the star) and the point of the for loop is to draw a ring of n number of stars (i=1:nstars), when i let nstars=1 the first star is where i need it to be, but when i let nstars=2 it doesn't draw the first star in the same place as nstars=1 is and i really don't understand why?
  2 件のコメント
dpb
dpb 2015 年 10 月 22 日
Absolutely no way to tell w/o the code...
John D'Errico
John D'Errico 2015 年 10 月 22 日
Talk to your instructor. We would have no idea what some non-standard piece of software does. Worse, without seeing what you are trying to do, it is impossible to answer.
SO ASK YOUR INSTRUCTOR.

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2015 年 10 月 22 日
You can probably complete your homework using this answer to almost the same turtle&star question: http://www.mathworks.com/matlabcentral/answers/249038#comment_317110

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by