//Example 9.11 //Describing Function for a relay with hysteresis nonlinearity. xdel(winsid())//close all graphics Windows clear; clc; //------------------------------------------------------------------ //Response of the saturation noninearity to sinusoidal input figure; importXcosDiagram(".\Ex9_11_model.xcos") xcos_simulate(scs_m,4); scs_m.props.context plot(yt.time,yt.values(:,1),'r--') plot(yt.time,yt.values(:,2),'b') xlabel('Time (sec.)'); ylabel('Amplitude'); title("Relay with hysteresis nonlinearity output to sinusoidal... input",'fontsize',3); exec .\fig_settings.sci; //custom script for setting figure properties zoom_rect([0 -1.2 5 1.2]) //------------------------------------------------------------------ ////Describing Functin for relay with hysteresis nonlinearity. h=0.1; N=1; i=1; for a=0.1:0.025:1 if a