Given x(t)=te-t (te Exp -t) where t is the time interval (t=-3 to 1) with step size 0.1. Generate the reflected version i.e. x(-t) of the given signal in one figure window using subplot command. Properly label the title, x-axis and y-axis

2 次查看(过去 30 天)
i am new in matlab, can any one help me? how to generate the reflected verion of the given signal in one figure, from the above values which is given.
  2 个评论
Steven Lord
Steven Lord 2020-12-31
This sounds like a homework assignment. If it is, show us the code you've written to try to solve the problem and ask a specific question about where you're having difficulty and we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the MATLAB Onramp tutorial (https://www.mathworks.com/support/learn-with-matlab-tutorials.html) to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.
Arshad Ali
Arshad Ali 2020-12-31
d=-(1/12)+(pi/6)*1i;
j=5;
l=0:2:40;
Y=j*exp(d*l);
subplot(2,2,1);
stem(l,real(Y));
grid on
xlabel('time index N=2');
ylabel('Amplitude k=5');
title('real part');
subplot(2,2,2);
stem(l,imag(Y));
grid on
xlabel('time index N=2');
ylabel('Amplitude k=5');
title('imaginary part');
c=-(1/12)+(pi/6)*1i;
k=2;
n=0:40;
x=k*exp(c*n);
subplot(2,2,3);
stem(n,real(x));
grid on
xlabel('time index N differencr=1');
ylabel('Amplitude k=2');
title('real part');
subplot(2,2,4);
stem(n,imag(x));
grid on
xlabel('time index N difference=1');
ylabel('Amplitude k=2');
title('imaginary part');
this is the code which i have done but not sure, it is right or wrong

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Axis Labels 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by