How to plot difference of two functions in matlab?
4 views (last 30 days)
Show older comments
Nitigya Joshi
on 25 Apr 2021
Commented: Nitigya Joshi
on 25 Apr 2021
1. Given u[n] the unit step sequence, using the stem function plot the following :-
• u[n - 3] - u[n - 8]
• u[8 - n] - u[4 - n]
• u[6 - n]
0 Comments
Accepted Answer
Walter Roberson
on 25 Apr 2021
f1 = @(x) sin(3*x)
f2 = @(x) sin(8*x)
f3 = @(x) f1(x) - f2(x)
fplot(f3, [-10 10])
More Answers (0)
See Also
Categories
Find more on Graph and Network Algorithms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!