Increment a for loop by 1e-1

6 visualizzazioni (ultimi 30 giorni)
thompson1o1
thompson1o1 il 3 Ott 2019
Risposto: Walter Roberson il 3 Ott 2019
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.

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Tag

Prodotti


Release

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by