Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
Tayeeba Tarannum
Tayeeba Tarannum el 20 de Sept. de 2017
Comentada: Tayeeba Tarannum el 20 de Sept. de 2017
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?

Respuestas (1)

Tim Berk
Tim Berk el 20 de Sept. de 2017
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))

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by