Page 1 of 1

1) a) Write a function m-file with name triangular, which generates a triangular signal as shown below. Your function co

Posted: Sat Mar 19, 2022 6:15 pm
by answerhappygod
1 A Write A Function M File With Name Triangular Which Generates A Triangular Signal As Shown Below Your Function Co 1
1 A Write A Function M File With Name Triangular Which Generates A Triangular Signal As Shown Below Your Function Co 1 (34.66 KiB) Viewed 37 times
1) a) Write a function m-file with name triangular, which generates a triangular signal as shown below. Your function code should have three parameters:1 (time axis), a, b (pulse width), A (amplitude). b) Once you're done, call your function from your main matlab code yourname.m and plot a triangular pulse with parameters as shown below. Label the plot carefully, c) Finally, copy all your code and graph (as jpeg or png) to your report А, t Yo = A (1-5) ostsb Y = A (1+#) -ast so Y. a b function y = triangle (A, a, b, t) , Given System Parameters: ts = 0.001: t = -8:ts:8: A = 2: a=1; b=2