how to do a 2d plot

3 visualizaciones (últimos 30 días)
asjad diknash
asjad diknash el 9 de Jun. de 2022
Comentada: Mitch Lautigar el 10 de Jun. de 2022
y=ln(2e^x/(1+e^x)^2)

Respuesta aceptada

Mitch Lautigar
Mitch Lautigar el 9 de Jun. de 2022
You need to use dot indexing since the values passed in will be in an array. Since this looks like a HW problem, I encourage you to play with ".*" and "./" and use the following link to help you with the natural log.
https://www.mathworks.com/help/matlab/ref/log.html
  4 comentarios
asjad diknash
asjad diknash el 9 de Jun. de 2022
so after i write the equation and in order to get a gragh i just use plot(x,y) right?
Mitch Lautigar
Mitch Lautigar el 10 de Jun. de 2022
yes

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by