필터 지우기
필터 지우기

What does 'in steps of something' mean in the range od value?

조회 수: 1 (최근 30일)
Tayeeba Tarannum
Tayeeba Tarannum 2017년 9월 20일
댓글: Tayeeba Tarannum 2017년 9월 20일
Plot exp(x) for values of x ranging from -2 to 2 in steps of 0.1 Here what does 'steps of 0.1' mean? Is it getting x value from -2:2 pausing 0.1?
I am assuming x = -2:0.1:2 Am I right?

답변 (1개)

Tim Berk
Tim Berk 2017년 9월 20일
Yes, x from -2 to 2 in steps of 0.1 is indeed
x = -2:0.1:2;
Note that if you want to plot the function, you might want to use
plot(x,exp(x))

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by