Advertisement
sixshoot95

S-Funkcija

Jan 19th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.63 KB | None | 0 0
  1. function [sys, x0] = Sajstem( t, x, u, flag )
  2. %UNTITLED4 Summary of this function goes here
  3. %   Detailed explanation goes here
  4.     switch flag
  5.         case 0
  6.             sys = [3;0;1;3;0;1]; %br_prom_stanja,0,br_izlaza,br_ulaza,0,
  7.                                  %,zavisnost ulaza od izlaza
  8.             x0 = [0;0;0];        %pocetno stanje modela
  9.         case 1
  10.             sys(1) =    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  11.             sys(2) =    %%%%%%%%% I Z V O D I %%%%%%%%
  12.             sys(3) =    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  13.         case 3
  14.             sys = [u(3) + x(3)];
  15.         otherwise
  16.                 sys = [];
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement