How to plot difference of two functions in matlab?
10 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Walter Roberson
2021-4-25
f1 = @(x) sin(3*x)
f2 = @(x) sin(8*x)
f3 = @(x) f1(x) - f2(x)
fplot(f3, [-10 10])
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!