Elements of MATLAB and Simulink - Lecture 1 - Percro
Elements of MATLAB and Simulink - Lecture 1 - Percro
Elements of MATLAB and Simulink - Lecture 1 - Percro
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Differential Equations• Set <strong>of</strong> differential Equations can be solved inside <strong>MATLAB</strong>• Useful for <strong>of</strong>fline computation or design setup• Subset <strong>of</strong> <strong>Simulink</strong> power• Define Options with odeset• Run passing Derivative function, time <strong>and</strong> inputsFor interaction during ODE computationSet OutputFcn callbackopts = odeset('OutputFcn', @solverOutputFcn);Inside solverOutputFcn call “drawnow”<strong>and</strong> stop simulation returning 1