How to write these problems in matlab?

조회 수: 2 (최근 30일)
Kmani Gray
Kmani Gray 2015년 1월 16일
댓글: Star Strider 2015년 1월 16일
45(288/9.3-4.6^2)-1065e^-1.5 and y=x^2-e^0.5x+x
  댓글 수: 2
Star Strider
Star Strider 2015년 1월 16일
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 2015년 1월 16일
편집: Kmani Gray 2015년 1월 16일
Its the exp() function. I want to know how to type these equations in matlab separately.

댓글을 달려면 로그인하십시오.

채택된 답변

Star Strider
Star Strider 2015년 1월 16일
편집: Star Strider 2015년 1월 16일
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
Kmani Gray
Kmani Gray 2015년 1월 16일
Thank you for your help.
Star Strider
Star Strider 2015년 1월 16일
My pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by