comparison scripts/control/system/sysrepdemo.m @ 7001:8b0cfeb06365

[project @ 2007-10-10 18:02:59 by jwe]
author jwe
date Wed, 10 Oct 2007 18:03:02 +0000
parents 475c83367a0e
children 93c65f2a5668
comparison
equal deleted inserted replaced
7000:e87f860624cc 7001:8b0cfeb06365
204 disp("(see option 4), so we initialize these as follows:") 204 disp("(see option 4), so we initialize these as follows:")
205 cmd = "inname = {\"r(t)\",\"y(t)\"};"; 205 cmd = "inname = {\"r(t)\",\"y(t)\"};";
206 run_cmd; 206 run_cmd;
207 cmd = "outname = \"e(t)\";"; 207 cmd = "outname = \"e(t)\";";
208 run_cmd 208 run_cmd
209 disp("Since the system is continous time and without states,") 209 disp("Since the system is continuous time and without states,")
210 disp("the ss inputs tsam, n, and nz are all zero:") 210 disp("the ss inputs tsam, n, and nz are all zero:")
211 cmd = "sys = ss([],[],[],D,0,0,0,[],inname,outname);"; 211 cmd = "sys = ss([],[],[],D,0,0,0,[],inname,outname);";
212 run_cmd 212 run_cmd
213 disp("The resulting system is:") 213 disp("The resulting system is:")
214 cmd = "sysout(sys)"; 214 cmd = "sysout(sys)";