Syntax
[y,ai]=MGTmotor([u,m,d,c,ss])
Input Parameter
u : | | input signal |
m : | | mass constant kg; default is 0.1kg (increasing means higher mass) |
d : | | damper constant kg/sec; default is 0.01 kg/sec (increasing means higher damping) |
c : | | spring constant kg/sec^2; default is 1 kg/sec^2 (increasing means higher stiffness) |
ss : | | if true, progress is shown step by step |
Output Parameter
y : | | motor response |
ai : | | ai coifficients calculated from m d c |
Examples
Impulse=[0 1 1 1 1 1 1 1 1 1 1 1]
MGTmotor(Impulse,1,2,1); % Standard motor behavior
MGTmotor(Impulse,0.1,0.01, 1);
MGTmotor([0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1],1,0.2, 0.01); % Spread of any other contagious disease or any product in 100 percent market distribution
ai=[ 4.000,-4.000,1.000]
MGTsystemIIR(MGTsystemFIR(Impulse,ai),ai)
Copyright 2021-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth
Last html export of this page out of FM database by TL: 2025-09-21