how to plot this
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
x=0:1:10;
y=x^3-5^x+3;
plot(x,y)
0 comentarios
Respuestas (3)
Deepak Gupta
el 14 de Nov. de 2022
Movida: Jan
el 14 de Nov. de 2022
Are you trying to evaluate Y at each x?
Use this in that case: y=x.^3-5.^x+3;
0 comentarios
RAGHUNATHRAJU DASHARATHA
el 14 de Nov. de 2022
As per my understanding you want to plot x and y but you are unable to do that beacuse you are not using element wise operations.
I'll be demonstarting it using your code
x=0:1:10;
y=x.^3-5.^x+3;
plot(x,y)
for more information you can refer the link
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!