How to write these problems in matlab?

2 visualizaciones (últimos 30 días)
Kmani Gray
Kmani Gray el 16 de En. de 2015
Comentada: Star Strider el 16 de En. de 2015
45(288/9.3-4.6^2)-1065e^-1.5 and y=x^2-e^0.5x+x
  2 comentarios
Star Strider
Star Strider el 16 de En. de 2015
This is confusing.
What is ‘e’?
Is it a variable, or the exponential function exp()?
Please clarify what you want to do.
Kmani Gray
Kmani Gray el 16 de En. de 2015
Editada: Kmani Gray el 16 de En. de 2015
Its the exp() function. I want to know how to type these equations in matlab separately.

Iniciar sesión para comentar.

Respuesta aceptada

Star Strider
Star Strider el 16 de En. de 2015
Editada: Star Strider el 16 de En. de 2015
That’s easy, then. The first one’s not an equation, so I supplied the missing left-hand side:
q = 45*(288/9.3-4.6^2)-1065*exp(-1.5)
y = x.^2-exp(0.5.*x)+x
I assume here the missing operators are implied multiplication. Since ‘x’ may be a vector (I don’t know from what you’ve written), I used the element-wise array operators (.^) and (.*) in place of the vector operators (^) and (*). They will work with both scalars and vectors.
  2 comentarios
Kmani Gray
Kmani Gray el 16 de En. de 2015
Thank you for your help.
Star Strider
Star Strider el 16 de En. de 2015
My pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Linear Algebra 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