Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Error while using int() for fourier transform !!!!

Subject: Error while using int() for fourier transform !!!!

From: Animesh Pandey

Date: 15 Apr, 2011 14:57:05

Message: 1 of 2

clc;
clear all;
syms t s w;

I = sqrt(-1);
f = exp(-t)*heaviside(t);
H = int(f(t).*exp(-I*w*t), t, -Inf, Inf);

w = -8*pi : pi/10 : 8*pi;
A = subs(H); % error_point

subplot(2,1,1);
plot(w,abs(A), 'r');
title('magnitude');
grid

subplot(2,1,2);
plot(w,angle(A), 'r');
title('phase');
grid

PLease help .... !!!!
And I want to use int() only ... no laplace() or fourier() .... !!!!
Thanx

Subject: Error while using int() for fourier transform !!!!

From: Steven_Lord

Date: 15 Apr, 2011 15:16:35

Message: 2 of 2



"Animesh Pandey" <apanimesh061@gmail.com> wrote in message
news:io9mc1$hmi$1@fred.mathworks.com...
> clc;
> clear all;
> syms t s w;
>
> I = sqrt(-1);
> f = exp(-t)*heaviside(t);
> H = int(f(t).*exp(-I*w*t), t, -Inf, Inf);

Don't use f(t) here. This makes MATLAB think you're asking for element t of
f.

H = int(f.*exp(-I*w*t), t, -Inf, Inf);

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us