summaryrefslogtreecommitdiff
path: root/70/CH3/EX3.2.3/3_2_3.sci
blob: b04e9647492780859ce5d6c1b13e437637961be7 (plain)
1
2
3
4
5
6
7
8
9
10
//page 156
clear;
close;
clc;
thetha=45; //Taking some value for thetha
a=[cos(thetha);sin(thetha)];
disp(a,'a=');
P=(a*a')/(a'*a);
disp(P,'Projection of line onto the thetha-direction(thetha taken as 45) in the x-y plane passing through a is ');
//end