how to plot this:

1 回表示 (過去 30 日間)
HADIMARGO
HADIMARGO 2019 年 6 月 12 日
コメント済み: Walter Roberson 2019 年 6 月 12 日
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 件のコメント
Walter Roberson
Walter Roberson 2019 年 6 月 12 日
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.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by