asterisks4
Version 1.0.0 (1.05 KB) by
Mahdi Zolfaghari
printing asterisks in a triangular shape using nested for loops
This code demonstrates how to use nested for loops in MATLAB to build a triangular shape constructed by asterisks (*).
Cite As
Mahdi Zolfaghari (2025). asterisks4 (https://www.mathworks.com/matlabcentral/fileexchange/68195-asterisks4), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2016b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Loops and Conditional Statements in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |