How to plot difference of two functions in matlab?

10 vues (au cours des 30 derniers jours)
Nitigya Joshi
Nitigya Joshi le 25 Avr 2021
Commenté : Nitigya Joshi le 25 Avr 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]

Réponse acceptée

Walter Roberson
Walter Roberson le 25 Avr 2021
f1 = @(x) sin(3*x)
f1 = function_handle with value:
@(x)sin(3*x)
f2 = @(x) sin(8*x)
f2 = function_handle with value:
@(x)sin(8*x)
f3 = @(x) f1(x) - f2(x)
f3 = function_handle with value:
@(x)f1(x)-f2(x)
fplot(f3, [-10 10])
  1 commentaire
Nitigya Joshi
Nitigya Joshi le 25 Avr 2021
ok..................
Thank you very much sir.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by