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 (2026). asterisks4 (https://uk.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
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
