how to plot a continuous signal

i am unable to plot the following signal can anyone help me? x(t)=20t^2(1-t)^4cos(12*pi*t)

 采纳的回答

Sounds like homework ...
x = @(t) 20*t.^2.*(1-t).^4.*cos(12*pi*t);
t = linspace(0, 1);
figure(1)
plot(t, x(t))
grid

9 个评论

thank you and yes a part of homework.. now i gotta find its haar transform..
My pleasure.
That should be relatively straightforward with the Wavelet Toolbox.
yeah i need to update my matlab. seems i dont have wavelet toolbox.
You need it if you want to work with wavelets. (I don’t use it often enough to be comfortable dealing with Questions about it.) It’s very useful for denoising signals with broadband noise, and for isolating specific features from signals.
ahan.. im working on it, thank you for information.
can you help me in another program
Perhaps.
Post it as a new Question.
hi. can you help me with this problem ?
sketch the continuous time signal
x(t) = u(t+1) - 2u(t-1) + u(t-3)

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by