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

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…

Contents