summaryrefslogtreecommitdiff
path: root/692/CH2/EX2.2/P2_2.sce
blob: aeffc0e8d6806177f7bb7b6baaa79248622deed2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//EXAMPLE 2.2 , BASIC OPERATIONS.
clear;
clc;
c=[3.2 41 36 -9.5 0];
disp(c,'c = ');
d=[1.7 -0.5 0 0.8 1];
disp(d,'d = ');
w1=c.*d;                   //Multiplication
disp(w1,'The product of two input vectors is =');
w2=c+d;                    //addition
disp(w2,'The addition of two input vectors is =');
w3=3.5*c;                  
disp(w3,'The scaling of first input vector is =');