How to solve this equation?
古いコメントを表示
Hi everyone,
I want to solve this equation in Matlab. Until now I have the following code:
a=18
b=60
c=76.7
syms x
solx=solve('cos(x).*(a.*sin(x)+b)=c','x')
I get next error: Check for missing argument or incorrect argument data type in call to function 'solve'.
Error in Untitled (line 8)
solx=solve('cos(x).*(a.*sin(x)+b)=c','x')
I dont know what it is wrong, can anybody help me?
Any help is appriciated.
4 件のコメント
Mario Malic
2020 年 8 月 29 日
編集済み: Mario Malic
2020 年 8 月 29 日
Example from function solve in documentation.
syms a b c x
eqn = a*x^2 + b*x + c == 0 % equals to sign ==
eqn = cos(x).*(a.*sin(x) + b) == c;
solve(eqn, x)
Sara Boznik
2020 年 8 月 29 日
Kitty Visser
2020 年 9 月 4 日
編集済み: Kitty Visser
2020 年 9 月 4 日
i have also this error
with this function
[V1,V2,V3]=solve('(V1-V2)/R1 = Is + 2*(V3-V2)/R3','(V2 - V1)/R1 + V2/R2 + (V2-V3)/R3 = 0','(V3-V2)/R3 + V3/R4 + 2*(V3-V2)/R3=0','V1','V2','V3')
Mario Malic
2020 年 9 月 4 日
編集済み: Mario Malic
2020 年 9 月 4 日
You're missing double equals sign in your equations.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Linear Algebra についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!