Artifact eb13e9d447e5b45bf58d7d4f3de602c3dbb1679b4db20002297609476aa32d0c:
- File gino/go_lin.m — part of check-in [af3953deae] at 2021-03-01 11:39:42 on branch master — Cleanup repository after cvs2git conversion. (user: jeff@gridfinity.com, size: 530) [annotate] [blame] [check-ins using] [more...]
- File mttroot/gino/go_lin.m — part of check-in [51b26b2720] at 2002-12-19 16:48:21 on branch origin/master — Initial files for gino - see README (user: gawthrop@users.sourceforge.net, size: 530) [annotate] [blame] [check-ins using]
function [A,B,C,D] = go_lin (f,g) ## usage: [A,B,C,D] = go_lin (f,g) ## ## n_x = eval(g_nops(f)); # Number of states n_y = eval(g_nops(g)); # Number of outputs n_u = n_y; ## Create symbolic state list x = "{}"; for i=1:n_x x = go_append(x,sprintf("x_%i", i)); endfor ## Create symbolic input list u = "{}"; for i=1:n_u u = go_append(u,sprintf("u_%i", i)); endfor [A_l,A] = go_diff(f,x); [B_l,B] = go_diff(f,u); [C_l,C] = go_diff(g,x); [D_l,D] = go_diff(g,u); endfunction