This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ModelingToolkitStandardLibrary.Electrical | |
using ModelingToolkitStandardLibrary.Mechanical.Rotational | |
using ModelingToolkitStandardLibrary.Blocks | |
using ModelingToolkit, OrdinaryDiffEq | |
using Plots | |
@mtkmodel DC_Motor begin | |
@components begin | |
voltage_step = Step(height = 10, start_time = 0) |