Code Monkey home page Code Monkey logo

dynamic-systems-simulation-and-modeling's Introduction

Dynamic Systems Simulation and Modeling

Linear Configuration, Estimation of Unknown Parameters, Minimum Squares Method

The mass-spring-damper system shown in the following figure is given:

image

Where b is the damping constant, k is the spring constant, u is an external force and y (t) is the displacement of the mass m due to the momentum applied to it. Simulate the algorithm you designed in the previous step assuming m = 15kg, b = 0.2kg / sec, k = 2kg / sec2 and u = 5 sin (2t) + 10.5N. Use samples every 0.1sec for 10sec assuming zero initial conditions for system states.

The circuit of the following figure is given:

image

where u1 (t) = 2 sin (t) V and u2 (t) = 1 V. In addition, we can only measure the voltages VR, VC at the ends of the resistor and the capacitor respectively. (a) Estimate with the method of least squares the transfer table of the above circuit. The VR, VC voltages are generated from the v.p file by calling the function as follows:

Vout = v (t);

E.g.

t = 1.5;

Vout = v (t);

The variable Vout contains the voltages VR, VC at time t = 1.5.

VR = Vout (1), VC = Vout (2)

Note: The simulations should be done with Matlab functions that you choose based on the quality of the results they give.

(b) Assume that the VR, VC measurements are taken incorrectly (eg generate the VR, VC signals as before and add in 3 random times some random numbers much larger in size than the normal values). Notice what impact this error has on the parameter estimates using the least squares method.

dynamic-systems-simulation-and-modeling's People

Contributors

vasikyrg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.