From the course: Accelerated MATLAB
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Solution: Solve for a given system of equations - MATLAB Tutorial
From the course: Accelerated MATLAB
Solution: Solve for a given system of equations
(upbeat music) - [Instructor] Hope you enjoyed working on that challenge. Now let's look at how to solve it. Let's open a new live script in MATLAB, and you will have this file ready to download using the path shown below. For the sake of time, as we move along with the solution, I will paste parts of the code and explain. First, let's type the parameters with the corresponding description. So as we can see here the parameters that we are given from the challenge, the moment of inertia, the dumping coefficient, the motor constant, and the step input voltage. Next, we are going to decide the function handle that will represent the right side of the differential equation in its final form as seen from the PowerPoint slides. So let's define the other function, and I'm going to paste the code here. We have the other function using the symbol @ with variables time and omega, which is the angular velocity, and the equation that defines this function. Now we need to define the initial…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Systems of linear and non-linear equations3m 21s
-
(Locked)
Direct methods for solving linear systems11m 25s
-
(Locked)
Iterative methods for large systems4m 38s
-
(Locked)
Solving systems of nonlinear equations8m 18s
-
(Locked)
Introduction to differential equations and solutions9m 8s
-
(Locked)
Challenge: Solve for a given system of equations2m 20s
-
(Locked)
Solution: Solve for a given system of equations4m 17s
-
(Locked)
-
-
-