034IN "Fundamentals of Automatic Control" - Introduction to MATLAB/Simulink Hands On: State Space Descriptions

Table of Contents

Introduction

This live script illustrates some models of dynamical systems (linear or nonlinear, time-invariant or time-variant, continuous or discrete time).
Inspired by the examples illustrated in the live script StateSpaceDescriptionExamples.mlx, you will able to create a Matlab live script in order to simulate the behavior of a continuous time dynamical system.
What you will learn:

A Linear Continuous Time System: a Mechanical System

Screenshot 2023-09-12 at 17.21.17.png
The dynamics of the system is given by the state-space model derived from conservation balances (of mass, energy, etc.). Applying Newton's second law, we obtain the following state-space description:
where the state variables are
This state-space description may be easily implemented in Matlab.
Proposal: implement a model using a Matlab live script to analyse the evolution of the above described mechanical system. Use the following parameters to configure the system model:
% Create a state-space description using the MATLAB ode() function, then
% assign the model parameters, the initial state, the simulation configuration.
% Using the same live script, run the simulation, retrieve the result
% and plot the state and output movements.
More exercises available soon.