How to solve quadratic equation which includes a vector?
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I have the following equation: V1^2 - V1*V2 - Q*Z = 0
V1 is what I need to find
V2 is a known constant
Q is a known vector with complex values
Z is a known constant
This is what I've tried:
syms V1
eq = V1^2 - V1*V2 - Q*Z;
result = roots(eq);
But I get the result "Empty sym: 0-by-1"
0 个评论
采纳的回答
Setsuna Yuuki.
2020-11-17
编辑:Setsuna Yuuki.
2020-11-17
You can try with solve:
syms V1
eq = V1^2 - V1*V2 - Q*Z;
result = solve(eq,V1);
6 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Equation Solving 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!