- 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 36 times
1) a) Write a function m-file with name triangular, which generates a triangular signal as shown below. Your function co
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
1) a) Write a function m-file with name triangular, which generates a triangular signal as shown below. Your function co
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