How to find the parameters of an equation using MATLAB solve?

1 view (last 30 days)
Hi, this is the first time that I am trying to solve an equation using MATLAB, and I'm a little bit confused. Suppose I have the following;
clear all; close all; clc;
A = [-0.050700 -3.8610 0 -32.2;
-0.001170 -0.5164 1.0000 0;
-0.000129 1.4168 -0.4932 0;
0 0 1.0000 0];
B = [0 -0.0717 -1.645 0]';
C = [0 0 1 0];
A = sym(A)
b = sym(B)
k = sym('k', [1 4])
x = sym('x',[4 1])
s = sym('s')
sI= s*eye(4)
(sI-(A-b*k))
d = det(sI-(A-b*k))
L1 = -1.25 + 2.2651j; L1 = sym(L1);
L2 = -1.25 - 2.2651j; L2 = sym(L2);
L3 = -0.01 + 0.0950j; L3 = sym(L3);
L4 = -0.01 - 0.0950j; L4 = sym(L4);
e = expand((s-L1)*(s-L2)*(s-L3)*(s-L4))s-L1)*(s-L2)*(s-L3)*(s-L4))
What I need is to find the k's of the equation d by simply setting it equal to the equation e. I would very much appreciate if someone help me.

Answers (0)

Community Treasure Hunt

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

Start Hunting!