Increment a for loop by 1e-1

8 views (last 30 days)
im looking how to do a for loop that increments from .0001 then have .001 followed by .01 finally with .1 but i have having trouble formatting it.

Accepted Answer

Walter Roberson
Walter Roberson on 3 Oct 2019
Example:
for p = [0:.0001:1, 0:0.001:1, 0:0.01:1, 0:0.1:1]

More Answers (0)

Categories

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

Tags

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!