Single tank linearization

by

 

Nonlinear single tank system file with finding operating point of it and solving ode

operating_response.m
 clc;
 clear all;

hs = fsolve(@singletank,[5],optimset('Display','iter'))
% hs = 4 m

df = @(t,h) singletank(h);

[t1,x1]=ode45(df,[0 5],4,[])
ax = plot(t1,x1(:,1));
xlabel('Time [sec]');
ylabel('level [m]');

Contact us