Bandwidth analysis of a system with multidimensional input

조회 수: 2 (최근 30일)
HaMo
HaMo 2019년 10월 16일
댓글: Star Strider 2019년 10월 20일
I am playing around with the built-in bandwidth function.
I can intuitively understand what is going on under the hood for a transfer function with scalar input and scalar output. However, how is the band width computed when the input is a vector of length > 1?
For instance, as in this example from the documentation:
A = [-2 -1; 1 0];
B = [1; 0];
C = [1 2];
D = 1;
sys = ss(A,B,C,D);
bandwidth(sys)

채택된 답변

Star Strider
Star Strider 2019년 10월 16일
The length of the input vector is likely irrelevant, and is not even an argument to the bandwidth function. Note however that the bandwidth function only applies to SISO systems, or arrays of SISO systems (Find Bandwidth of Model Array), so it would not apply to MISO or MIMO systems.
  댓글 수: 6
HaMo
HaMo 2019년 10월 20일
After testing out a few different ideas in Matlab, I suddenly had an Eureka moment. This is the answer I was looking for:
A = [-2,-1;1,0];
B = [1;0];
C = [1,2];
D = 1;
% Laplace transformation:
% sX = AX + BU
% Y = CX + D
%
% (sI - A)X = BU
% X = inv(sI - A) B U
% Y = C inv(sI - A) B U + D
% H(s) = C inv(sI - A) B
sys = ss(A,B,C,D);
bandwidth(sys)
%% Built-in bode plot
figure(1)
bode(sys);
%% Home-made bode plot
s = (i*10.^(-2:.1:2))/(2*pi); % Input frequencies
freq_response = nan(size(s)); % Frequency response vector
for i=1:length(s)
freq_response(i) = C / (s(i) * eye(length(A)) - A) * B + D;
end
figure(2)
% Magnitude plot
subplot(2,1,1)
semilogx(abs(s), 10*log(abs(freq_response)))
% Phase plot
subplot(2,1,2)
semilogx(abs(s), 180/pi*phase(freq_response));
Star Strider
Star Strider 2019년 10월 20일
Great!
That example (from the documentation) is a SISO system.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by