How can I correctly use the parenthesis and write equations

26 次查看(过去 30 天)
I would like to calculate P_d by the equation above and I wrote that equation in Matlab. I wrote two equations in matlab, but none of them give the correct answer. I beg your corrections on the equations written in Matlab.
Best regards!
  1 个评论
Adam Danz
Adam Danz 2020-12-29
编辑:Adam Danz 2020-12-29
Supplying the text rather than an image would allow us to copy-paste your code so we can examine it from the editor.
Providing a set of inputs and expected outputs would is also a good idea.

请先登录,再进行评论。

回答(1 个)

dpb
dpb 2020-12-29
Pd=Pc*((1+(k-1)/2*ac^2*Vpr^2)^(k/(K-1))-1);
Which inputs might be vectors, if any, would determine where and if need dot operators.
Work from inside out...

类别

Help CenterFile Exchange 中查找有关 Interactive Model Editing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by