Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function [sys, x0] = Sajstem( t, x, u, flag )
- %UNTITLED4 Summary of this function goes here
- % Detailed explanation goes here
- switch flag
- case 0
- sys = [3;0;1;3;0;1]; %br_prom_stanja,0,br_izlaza,br_ulaza,0,
- %,zavisnost ulaza od izlaza
- x0 = [0;0;0]; %pocetno stanje modela
- case 1
- sys(1) = %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- sys(2) = %%%%%%%%% I Z V O D I %%%%%%%%
- sys(3) = %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- case 3
- sys = [u(3) + x(3)];
- otherwise
- sys = [];
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement