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.

 Réponse acceptée

Walter Roberson
Walter Roberson le 3 Oct 2019

0 votes

Example:
for p = [0:.0001:1, 0:0.001:1, 0:0.01:1, 0:0.1:1]

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange

Produits

Version

R2019a

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by