diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /842/CH1/EX0.15/Example0_15.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '842/CH1/EX0.15/Example0_15.sce')
-rwxr-xr-x | 842/CH1/EX0.15/Example0_15.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/842/CH1/EX0.15/Example0_15.sce b/842/CH1/EX0.15/Example0_15.sce new file mode 100755 index 000000000..4d018c34e --- /dev/null +++ b/842/CH1/EX0.15/Example0_15.sce @@ -0,0 +1,15 @@ +//clear//
+//Example 1.5:To express sum of two complex exponentials
+//as a single sinusoid
+clear;
+clc;
+close;
+t =0:1/100:2*%pi;
+x1 = exp(sqrt(-1)*2*t);
+x2 = exp(sqrt(-1)*3*t);
+x = x1+x2;
+for i = 1:length(x)
+ X(i) = sqrt((real(x(i)).^2)+(imag(x(i)).^2));
+end
+plot(t,X);
+xtitle('Full wave rectified sinusoid','time t','Magnitude');
|