MATLAB CONTROL SYSTEM TOOLBOX 9 Spécifications Page 428

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 591
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 427
gensig
16-88
16gensig
Purpose Generate test input signals for lsim
Syntax [u,t] = gensig(type,tau)
[u,t] = gensig(type,tau,Tf,Ts)
Description [u,t] = gensig(type,tau) generates a scalar signal u of class type and with
period
tau (in seconds). The following types of signals are available.
gensig returns a vector t of time samples and the vector u of signal values at
these samples. All generated signals have unit amplitude.
[u,t] = gensig(type,tau,Tf,Ts) also specifies the time duration Tf of the
signal and the spacing
Ts between the time samples t.
You can feed the outputs
u and t directly to lsim and simulate the response of
a single-input linear system to the specified signal. Since
t is uniquely
determined by
Tf and Ts, youcan also generate inputs formulti-input systems
by repeated calls to
gensig.
Example Generate a square wave with period 5 seconds, duration 30 seconds, and
sampling every 0.1 seconds.
[u,t] = gensig('square',5,30,0.1)
Plot the resulting signal.
plot(t,u)
type = 'sin'
Sine wave.
type = 'square'
Square wave.
type = 'pulse'
Periodic pulse.
Vue de la page 427
1 2 ... 423 424 425 426 427 428 429 430 431 432 433 ... 590 591

Commentaires sur ces manuels

Pas de commentaire