Identifying a variable in Matlab

15 views (last 30 days)
Ayat Mohammad
Ayat Mohammad on 27 Dec 2020
Answered: Walter Roberson on 27 Dec 2020
%characteristic function; w=2*pi/t j=sqrt(-1) syms x Phaiz=int(exp(j*w*x)*y, a, b)
How do I identify t as time, and can some one correct the code please

Answers (1)

Walter Roberson
Walter Roberson on 27 Dec 2020
%characteristic function;
syms t
w = 2*pi/t;
j = sqrt(-1);
syms a b x y
assume(a>=0 & b>=a)
Phaiz = int(exp(j*w*x)*y, t, a, b)
Phaiz = 

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!