(adsbygoogle = window.adsbygoogle || []).push({}); 1. The problem statement, all variables and given/known data

x(t)=4sin(0.5t).3u(t)

x[n]=x(n2Ts)

The 1st equation, x(t)=4sin(0.5t).2u(t)

Code :

>> A=2;

>> wo=0.5;

>> t=5:0.25:50;

>> x=A*sin(wo*t).3*(t>=0);

>> plot(t,x), grid on

>> xlabel('t (s)'); ylabel('Amplitude(unit)')

But the second one,x[n]=x(n2T_{s}), I don't know what code should I use to plot it out,pls help,thanks.

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Homework Help: Matlab code needed

**Physics Forums | Science Articles, Homework Help, Discussion**