solving for an unknown variable when given the rest

11 ビュー (過去 30 日間)
laura webb
laura webb 2020 年 11 月 25 日
コメント済み: laura webb 2020 年 11 月 25 日
i'm new to using matlab and i've been stuck on this for a while
i'm trying to calculate the value of V but i keep getting errors
syms V
y = 0.05;
k = 0.0806;
v = 90;
N = 4;
h = solve(y == 1/((1+k(V/v))^N),V)
Error using sym/subsindex (line 825)
Invalid indexing or function definition. Indexing must follow MATLAB indexing. Function arguments must be
symbolic variables, and function body must be sym expression.
Error in untitled2 (line 8)
h = solve(y == 1/((1+k(V/v))^N),V)

採用された回答

Setsuna Yuuki.
Setsuna Yuuki. 2020 年 11 月 25 日
編集済み: Setsuna Yuuki. 2020 年 11 月 25 日
syms V
y = 0.05;
k = 0.0806;
v = 90;
N = 4;
h = solve(y == 1/((1+k*(V/v))^N),V) %multiplication sign missing
you only should change
h = solve(y == 1/((1+k(V/v))^N),V) --> h = solve(y == 1/((1+k*(V/v))^N),V)
  1 件のコメント
laura webb
laura webb 2020 年 11 月 25 日
thank you! can't believe i was so genuinely confused

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAssumptions についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by