%% Specify State and Input Names for Frequency-Response Data Model
% For this example, load the frequency response data collected for a water tank model.

load wtankData.mat

% The model has one input, Voltage, and one output, Water height.
% Create an frd model, specifying the input and output names.

sys = frd(response,frequency,'InputName','Voltage','OutputName','Height');

% Plot the frequency response.

bode(sys)

% The input and output names appear on the Bode plot. Naming the inputs and outputs can be useful when dealing with response plots for MIMO systems.
% Copyright 2021 The MathWorks, Inc.