필터 지우기
필터 지우기

Plot the real and imaginary part of FRF vs Frequency using freqresp(system, w)?

조회 수: 9 (최근 30일)
Maral Dorri
Maral Dorri 2020년 3월 30일
답변: Navya Seelam 2020년 4월 1일
I have a three story shear building with the following system matrix. i use the following code to get the real and imaginary parts of the FRF but I get the error: Not enough input arguments.
M = [1 0 0;0 2 0;0 0 2];
K = [100 -100 0;-100 200 -100;0 -100 250];
C = 0.03*M;
% State Space Representation
I = [1 0 0;0 1 0;0 0 1];
zeros = zeros(3);
A = [zeros I; (-1*inv(M)*K) (-1*inv(M)*C)];
M1st = [0 0 0;0 0 0;0 0 0.5];
B = [zeros; M1st];
Ca = [(-1*inv(M)*K) (-1*inv(M)*C)];
Da = M1st;
System = ss(A,B,Ca,Da);
w = logspace(1,2,200);
H = freqresp(system, w)

답변 (1개)

Navya Seelam
Navya Seelam 2020년 4월 1일
You are getting error because you have defined state space model "System" and you are trying to use "system" with the function freqresp.

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by