MATLAB SIMULINK 7 - DEVELOPING S-FUNCTIONS Guida Utente Pagina 42

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 210
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 41
2 Writing S-Functions As M-Files
2-18
function [sys,x0,str,ts] = vsfunc(t,x,u,flag)
% This example S-function illustrates how to create a variable
% step block in Simulink. This block implements a variable step
% delay in which the first input is delayed by an amount of time
% determined by the second input:
%
% dt = u(2)
% y(t+dt) = u(t)
%
switch flag,
case 0
[sys,x0,str,ts] = mdlInitializeSizes; % Initialization
case 2
sys = mdlUpdate(t,x,u); % Update Discrete states
case 3
sys = mdlOutputs(t,x,u); % Calculate outputs
case 4
sys = mdlGetTimeOfNextVarHit(t,x,u); % Get next sample time
case { 1, 9 }
sys = []; % Unused flags
otherwise
error(['Unhandled flag = ',num2str(flag)]); % Error handling
end
% End of vsfunc.
%==============================================================
% mdlInitializeSizes
% Return the sizes, initial conditions, and sample times for the
% S-function.
%==============================================================
%
function [sys,x0,str,ts] = mdlInitializeSizes
%
% Call simsizes for a sizes structure, fill it in and convert it
% to a sizes array.
%
Vedere la pagina 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 209 210

Commenti su questo manuale

Nessun commento

AEG A1283GS7 podręczniki

Instrukcje obsługi i podręczniki użytkownika dla Zamrażarki AEG A1283GS7.
Dostarczamy 1 pdf podręczników AEG A1283GS7 do pobrania za darmo według typów dokumentów: Instrukcja Użytkownika






Więcej produktów i instrukcji dla Zamrażarki AEG

Modele Rodzaj dokumentu
AG88850I Instrukcja Użytkownika   Aeg AG88850I Benutzerhandbuch, 12 strony
AG78850I Instrukcja Użytkownika    Aeg AG78850I Handleiding, 22 strony
SFB41211AS Instrukcja Użytkownika      Aeg SFB41211AS Handleiding, 64 strony
A71100TSX0 Instrukcja Użytkownika    Aeg A71100TSX0 Manuel utilisateur, 36 strony
SKS68800S2 Instrukcja Użytkownika      Aeg SKS68800S2 Handleiding, 44 strony
S83600CSM1 Instrukcja Użytkownika     Aeg S83600CSM1 Korisnički priručnik [de] [en] , 48 strony
SC41840-1I Instrukcja Użytkownika    Aeg SC41840-1I Handleiding [de] , 26 strony
SK81240I Instrukcja Użytkownika Aeg SK81240I Brugermanual, 30 strony
ABB68811LS Instrukcja Użytkownika      Aeg ABB68811LS Handleiding [en] , 56 strony
SK71000-4I Instrukcja Użytkownika     Aeg SK71000-4I User Manual, 18 strony
AGS68200F0 Instrukcja Użytkownika      Aeg SKS68200F0 User Manual, 56 strony
A81000TNX1 Instrukcja Użytkownika   Aeg A81000TNX1 User Manual, 20 strony
S3258DT8 Instrukcja Użytkownika   Aeg S3258DT8 User Manual, 21 strony
SFB58821AS Instrukcja Użytkownika      Aeg SFB58821AS Handleiding [de] , 64 strony
SKS68200F0 Instrukcja Użytkownika Aeg SKS68200F0 Brukermanual [en] [fr] [nl] , 16 strony
OEKOA.1343-6E Instrukcja Użytkownika   Aeg OEKOA.1343-6E User Manual [es] [it] [nl] [pt] , 27 strony
ABS6821VAF Instrukcja Użytkownika   Aeg ABS6821VAF User Manual, 16 strony
AGS68800S1 Instrukcja Użytkownika      Aeg AGS68800S1 Handleiding [fr] [nl] , 48 strony
SKS88840C0 Instrukcja Użytkownika     Aeg SKS98849C0 Handleiding, 56 strony
SKB41211AS Instrukcja Użytkownika       Aeg SKB41211AS Handleiding, 52 strony