You are on page 1of 9

EXPERIMENT:-6 Time Scaling of CTS and DTS

// 1.)
t=0:0.1:2*%pi;
y1=sin(t);
y2=sin(2*t);
y3=sin(0.5*t);

subplot(221);
plot2d(t,y1);
xtitle("sin(t)
wave","time","amplitude");
a=gca();
a.x_location="middle";

subplot(222);
plot2d(t,y2);
xtitle("sin(2*t)
wave","time","amplitude");
b=gca();
b.x_location="middle";

subplot(223);
plot2d(t,y3);
xtitle("sin(0.5*t)
wave","time","amplitude");
c=gca();
c.x_location="middle";
// 2.)
n=0:0.1:2*%pi;
y1=sin(n);
y2=sin(2*n);
y3=sin(0.5*n);

subplot(221);
plot2d3(n,y1);
xtitle("sin(n)
wave","time","amplitude");
a=gca();
a.x_location="middle";

subplot(222);
plot2d3(n,y2);
xtitle("sin(2*n)
wave","time","amplitude");
b=gca();
b.x_location="middle";

subplot(223);
plot2d3(n,y3);
xtitle("sin(0.5*n)
wave","time","amplitude");
c=gca();
c.x_location="middle";
// 3.)
t=0:0.1:2*%pi;
y1=cos(t);
y2=cos(2*t);
y3=cos(0.5*t);

subplot(221);
plot2d(t,y1);
xtitle("cos(t)
wave","time","amplitude");
a=gca();
a.x_location="middle";

subplot(222);
plot2d(t,y2);
xtitle("cos(2*t)
wave","time","amplitude");
b=gca();
b.x_location="middle";

subplot(223);
plot2d(t,y3);
xtitle("cos(0.5*t)
wave","time","amplitude");
c=gca();
c.x_location="middle";
// 4.)
n=0:0.1:2*%pi;
y1=cos(n);
y2=cos(2*n);
y3=cos(0.5*n);

subplot(221);
plot2d3(n,y1);
xtitle("cos(n)
wave","time","amplitude");
a=gca();
a.x_location="middle";

subplot(222);
plot2d3(n,y2);
xtitle("cos(2*n)
wave","time","amplitude");
b=gca();
b.x_location="middle";

subplot(223);
plot2d3(n,y3);
xtitle("cos(0.5*n)
wave","time","amplitude");
c=gca();
c.x_location="middle";
//5.)
t=0:0.1:1;
y=exp(t);
y1=exp(0.5*t);
y2=exp(2*t);

subplot(221);
plot2d(t,y);
xtitle("exp(t)
wave","time","amplitude");

subplot(222);
plot2d(t,y1);
xtitle("exp(0.5*t)
wave","time","amplitude");

subplot(223);
plot2d(t,y);
xtitle("exp(2*t)
wave","time","amplitude");
//6.)
n=0:0.1:1;
y=exp(n);
y1=exp(0.5*n);
y2=exp(2*n);

subplot(221);
plot2d3(n,y);
xtitle("exp(n)
wave","time","amplitude");

subplot(222);
plot2d3(n,y1);
xtitle("exp(0.5*n)
wave","time","amplitude");

subplot(223);
plot2d3(n,y);
xtitle("exp(2*n)
wave","time","amplitude");
//7.)
t=0:0.1:1;
y=exp(-t);
y1=exp(-0.5*t);
y2=exp(-2*t);

subplot(221);
plot2d(t,y);
xtitle("exp(-t)
wave","time","amplitude");

subplot(222);
plot2d(t,y1);
xtitle("exp(-0.5*t)
wave","time","amplitude");

subplot(223);
plot2d(t,y);
xtitle("exp(-2*t)
wave","time","amplitude");
//8.)
n=0:0.1:1;
y=exp(-n);
y1=exp(-0.5*n);
y2=exp(-2*t);

subplot(221);
plot2d3(t,y);
xtitle("exp(-n)
wave","time","amplitude")
;

subplot(222);
plot2d3(t,y1);
xtitle("exp(0.5*n)
wave","time","amplitude")
;

subplot(223);
plot2d3(t,y);
xtitle("exp(2*n)
wave","time","amplitude")
;

You might also like