printing asterisks in a triangular shape using nested for loops


Updated 14 Jul 2018

View License

This code demonstrates how to use nested for loops in MATLAB to build a triangular shape constructed by asterisks (*).

Cite As

Mahdi Zolfaghari (2023). asterisks4 (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes