Increment a for loop by 1e-1

조회 수: 5 (최근 30일)
thompson1o1
thompson1o1 2019년 10월 3일
답변: Walter Roberson 2019년 10월 3일
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