How to evaluate an equation with multiple points for a variable.
1 回表示 (過去 30 日間)
古いコメントを表示
I have RE = V*D/NU and another equation C = 3.*RHOBAR/(4.*D) both variables RE and C appear in other equations, which will eventually end up in a plot. I want set multiple values for D. How do I solve this?
If I use D=[.1 .05 .001] I get an error stating Matrix Dimensions must agree
回答 (1 件)
Thanigaivel Raja T
2016 年 9 月 8 日
編集済み: Thanigaivel Raja T
2016 年 9 月 8 日
Make sure you have placed dot before operators for vector variables in your reynolds number RE, C and in equation containing RE and C.
In general,
* % matrix multiply
.* %scalar multiply
/ % matrix divide
./ % scalar divide
^ % exponentiation
.^ % element-by-element exponentiation
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!