Effacer les filtres
Effacer les filtres

how to plot this:

2 vues (au cours des 30 derniers jours)
HADIMARGO
HADIMARGO le 12 Juin 2019
Commenté : Walter Roberson le 12 Juin 2019
hi. this is my code:
close all
clear all
syms t;
f=1*(t>=-1 & t<=1);
w=pi;
FT= int(f*exp(-i*w*t),-inf,inf);
ezplot (FT);
axis([-2,2,-2,2]);
this is result:
3.jpg
  1 commentaire
Walter Roberson
Walter Roberson le 12 Juin 2019
Do not try to use logical masking with symbolic expressions. t>=-1 evaluates (at best) to TRUE or FALSE, not to 0 or 1. Use piecewise() instead.
By the way, the integral is 0.

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by