How do i type this long equation?
조회 수: 10 (최근 30일)
이전 댓글 표시
Hp41 = ((s/0.71) + 1)/[((s^2/5625) + (1.4*s/75) + 1))*s((s^2/9) + (0.74*s/9) + 1))]
댓글 수: 1
John D'Errico
2020년 5월 13일
You already managed to type it. And it is not that long. I suppose you could use dictation tools to recognize and then transcribe your speech, if that is your question.
Due to your use of brackets in a place where they are not needed, my guess is what you probably need most is to just learn MATLAB. Start at the MATLAB Onramp. The introductory tutorial is free.
답변 (1개)
the cyclist
2020년 5월 13일
It is not possible to convert that expression to valid MATLAB syntax, because you have some mismatched parentheses.
Unless I made a mistake, the following is (mostly) equivalent to your expression:
a = s/71;
b = a+1;
c = s.^2/5625;
d = 1.4*s/75;
e = c + d + 1;
f = s.^2/9;
g = 0.74*s/9;
h = f + g + 1;
Hp41 = b ./ [e) * s(h))];
That's clearly not what you intended.
I'm not quite sure what you did intend, so I can't fix it. But not that square bracket in MATLAB are not used as "higher level parentheses" to group terms, in the way they are in written mathematics. So use parentheses for those, too.
So, something like the following is valid:
H41 = b ./ ( e * (s * h))
instead, but I don't know if it is what you want.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!