Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Name: Joevelle Zabate Baflor Instructor: Engr.

Joseph Manbert Mendez, REcE


Subject: ECE415 (SPECTRA) Date: June 29, 2017

Activity#1 (PIECEWISE GRAPH MODEL)

Objectives:

Create a piecewise function


Create a graph model of your piecewise function
Graph must have a constant line, diagonal line with positive and negative values and lastly a curve.

Procedures:

1. First step is to make a piecewise function that supports our objective number 3
2. Second step is encode the function in a script file form in our Matlab software
3. Third step is to graph the corresponding data about your piecewise function.
4. Last step is to verify that your line graph of your model is continuous

The image above shows what are the algorithms I use


Name: Joevelle Zabate Baflor Instructor: Engr. Joseph Manbert Mendez, REcE
Subject: ECE415 (SPECTRA) Date: June 29, 2017

PIECEWISE FUNCTION:

+

+
() = +


{ () ( )

Consider t1 = [-2:0.1:-1];

* The 0.1 helps to give an accurate graph of a piecewise


function

* In every equation there is an equivalent value or


equivalent interval under a specified time

Shown above is the algorithm for the piecewise function

Shown above is the algorithm for the individual intervals and functions, this will indicate the graphing model of our function

Enable for us to graph our piecewise function we use syntax plot and plugin in the initial variables of our functions
from piecewise equation.
Name: Joevelle Zabate Baflor Instructor: Engr. Joseph Manbert Mendez, REcE
Subject: ECE415 (SPECTRA) Date: June 29, 2017

PIECEWISE FUNCTION GRAPH MODEL

The X-Axis indicates the time with an interval of 1 second.

While our Y-Axis indicates function f(t)

Based on our final output graph model, I can say that we obtain all the objectives, We achieved positive and
negative value of diagonals, a constant value and also a curve.

You might also like