How to evaluate an equation with multiple points for a variable.

조회 수: 2 (최근 30일)
aquiano
aquiano 2016년 9월 5일
댓글: Thorsten 2016년 9월 8일
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
  댓글 수: 2
KSSV
KSSV 2016년 9월 7일
What are V, D, RHOBAR? constants? I think NU is poisons ratio and RHOBAR is density. What is V?
Thorsten
Thorsten 2016년 9월 8일
Please post your code in text form, not as an image, such that we can run it.

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

답변 (1개)

Thanigaivel Raja T
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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by