System of differential equations in MATlab simulink

In summary, When trying to simulate a mechanical system from a differential equation in Simulink, it is important to ensure that the model is working correctly and giving expected results. Utilizing debugging tools and seeking help from forums such as Physics Forums can aid in this process.
  • #1
Ivan Antunovic
111
4
Hello everyone, I would like if someone could help me with a little excersie here.

1. Homework Statement
I am trying to simulate a mechanical system from a differential equations in simulink, but I don't know If I am doing it right.
I've made the model as you can see in the 2nd picture attached.


Homework Equations


Equations are in the picture attached.

The Attempt at a Solution


Also my model in Simulink is attached in the pictures.[/B]
 

Attachments

  • equat.JPG
    equat.JPG
    38.2 KB · Views: 372
  • model.JPG
    model.JPG
    19.3 KB · Views: 335
  • vrijednosti.JPG
    vrijednosti.JPG
    16.5 KB · Views: 329
Physics news on Phys.org
  • #2
I think you are on the right track here. Your model looks good, but I would suggest running a few simulations to ensure that it is working correctly and giving you the results you are expecting. You can also use the different debugging tools available in Simulink to help you identify and troubleshoot any issues with your model. Additionally, if you have any questions about specific parts of your model or about Simulink in general, you can always ask for help here on the Physics Forums.
 

Related to System of differential equations in MATlab simulink

1. What is a system of differential equations?

A system of differential equations is a set of equations that describe the relationship between multiple variables and their rates of change over time. In other words, it is a mathematical model that represents the behavior of a dynamic system.

2. How can I solve a system of differential equations in MATLAB Simulink?

To solve a system of differential equations in MATLAB Simulink, you can use the "Simulink Model" block and specify the differential equations in the model or use the "Solver Configuration" block to configure the solver settings.

3. What are the advantages of using MATLAB Simulink for solving differential equations?

MATLAB Simulink offers a user-friendly graphical interface for building and simulating dynamic systems. It also has a wide range of built-in solvers and analysis tools that make it easier to solve and analyze systems of differential equations.

4. Can I use MATLAB Simulink for systems with both ordinary and partial differential equations?

Yes, MATLAB Simulink can handle systems of both ordinary and partial differential equations. It offers various solvers for different types of differential equations, such as ode45 for ordinary differential equations and pdepe for partial differential equations.

5. Are there any resources available for learning how to use MATLAB Simulink for solving differential equations?

Yes, there are many online tutorials, courses, and documentation available for learning how to use MATLAB Simulink for solving differential equations. The official MathWorks website also offers extensive resources and examples for using Simulink for dynamic system modeling and simulation.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
0
Views
815
  • Engineering and Comp Sci Homework Help
Replies
2
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
840
  • Engineering and Comp Sci Homework Help
Replies
2
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
20K
  • General Engineering
Replies
0
Views
721
  • Engineering and Comp Sci Homework Help
Replies
2
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
5
Views
1K
Back
Top