Here is an example of how to create a star pattern in Matlab using loops:
main.m287 chars19 lines
This code will output the following pattern:
main.m20 chars6 lines
You can adjust the rows
variable to change the number of rows in the pattern.
gistlibby LogSnag