trying to right code to generate matrix for three different frequency
1 回表示 (過去 30 日間)
Hello I have 3 frequencies w1 = 100 , w2 = 200 and w3 = 400
and I have state space model matrix
Ai = [0 1;-wi 0]
Bi = [0 wi]
ci = [1 0]
I want to generate these matrix for each frequencies i mentioned above and pack them in 1 final matrix respectively A, B and C
how should i do this ?
i have tried but its not working
w = [100 200 300]
for i = 1:3
A(i)=[0 1; w(i) 0]
any other suggestion or ways ?