You are on page 1of 7

Figure 1- Simulink Model

Figure 2- Input and output signals

Appendix 1 MatLab Code Problem 3


%% Lawrence Technological University
% 3028 Mechatronics - Professor Rich Marsh
% 000732109 - Guilherme Henrique Oliveira Avelar
% Homework 3 - Problem 3 - 02/05/2015
%% Cleaning variables
clear all; %clean variables
clc; %clean Command Window
close all; %close windows
%% Parameter values
M = 100; %Kg
B = 20; % N.sec/m
K = 50; % N/m

You might also like