Control Theory, Embedded Systems.
sim('DCMotorModeling.mdl'); hold on; plot(SimRPM(:,1), SimRPM(:,2), 'r'); xlim([6 15]); ylim([100 240]); title('DC Motor Speed'); xlabel('Time [s]'); ylabel('Motor Speed [RPM]'); grid on; legend('Actual Motor Speed [RPM]', 'Simulation Motor Speed [RPM]'); Now, everything is set up. You can see that