Increment a for loop by 1e-1

8 次查看(过去 30 天)
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.

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by