I am managing to only come up with a product of the integer itself * 1, instead of a script that loops until the product is =>500. Help appreciated. See my attempt below;

3 views (last 30 days)
x = [zeros(1, NumberOfAsterisksInEachDirection), linspace(0, width,
NumberOfAsterisksInEachDirection), linspace(0, width,
NumberOfAsterisksInEachDirection),...
ones(1, NumberOfAsterisksInEachDirection)*width];

Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!