Embed presentation
Download to read offline


This document contains MATLAB code that defines a function y(t) based on the value of the variable n over intervals from -2 to 0, 0 to 1, and 1 to 2. It sets y(t) to either 0 or 2n depending on which interval n is in, plots the resulting function, and increments t at each step of the for loop that iterates through values of n from -2 to 2 in increments of 0.01.
