Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to write a program to draw a diamond of stars in MATLAB?

1 次查看(过去 30 天)
I have a exam and don't know how to write a program to draw a triangle of stars (use : while and if and for), for example :
*
***
*****
*******
*****
***
*
I'm suffering from this. Please help me.

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by