Need help with writing equation
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示

Hello, I need help in writing this equation.I tried writing my own and I need someone to confirm whether my equation is correct or not
ne=no*(1-(pg/pa))*(2*pg*(1-exp(d/t)))/(((pg*pa)/(pa-pg))+(pa*exp(d/t)))
Thank you
0 件のコメント
回答 (1 件)
Star Strider
2018 年 1 月 3 日
It appears to me to be correct.
I would make one change, and that is to vectorise it (using the ‘dot operator’), in the event that one or more variables are vectors. (If more than one are vectors, all the vector variables must have the same row and column size.)
ne = no.*(1-(pg./pa)).*(2*pg.*(1-exp(d./t)))./(((pg.*pa)./(pa-pg))+(pa.*exp(d./t)))
With respect to vectorisation, see the documentation on Array vs. Matrix Operations (link) for details.
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!