summaryrefslogtreecommitdiff
path: root/2606/CH6/EX6.7/ex6_7.sce
blob: 3dd7198198c65e608355c60e4c99a32d57a8b809 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Page Number: 6.16
//Example 6.7
clc;
//Given
//Pdot=2*Pdash and Pdot+Pdash=1
//Therfore, on solving using linear equations
a=[1 -2;1 1];
c=[0;1];
b=inv(a)*c;
Pdash=b(1,1);
Pdot=b(2,1);
disp(Pdot,'Pdot:');
disp(Pdash,'Pdash:')