필터 지우기
필터 지우기

how to plot this:

조회 수: 2 (최근 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 CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by