comparison scripts/control/system/__syscont_disc__.m @ 7136:59dcf01bb3e3

[project @ 2007-11-08 20:18:25 by jwe]
author jwe
date Thu, 08 Nov 2007 20:18:26 +0000
parents a1dbe9d80eee
children
comparison
equal deleted inserted replaced
7135:8aa770b6c5bf 7136:59dcf01bb3e3
45 ## Created: February 1997 45 ## Created: February 1997
46 46
47 function [n_tot, st_c, st_d, y_c, y_d] = __syscont_disc__ (sys) 47 function [n_tot, st_c, st_d, y_c, y_d] = __syscont_disc__ (sys)
48 48
49 ## get ranges for discrete/continuous states and outputs 49 ## get ranges for discrete/continuous states and outputs
50 [nn,nz,mm,pp,yd] = sysdimensions(sys); 50 [nn, nz, mm, pp, yd] = sysdimensions (sys);
51 n_tot = nn + nz; 51 n_tot = nn + nz;
52 st_c = 1:(nn); 52 st_c = 1:(nn);
53 st_d = nn + (1:nz); 53 st_d = nn + (1:nz);
54 y_c = find(yd == 0); # y_c, y_d will be empty if there are none. 54 y_c = find (yd == 0); # y_c, y_d will be empty if there are none.
55 y_d = find(yd == 1); 55 y_d = find (yd == 1);
56 56
57 endfunction 57 endfunction