Info

This question is closed. Reopen it to edit or answer.

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

1 view (last 30 days)
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.

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!