blob: c0d8245f0be36a2a2168e4346f31c96707900331 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clear;
clc;
close;
//Get the corresponding matrix equation.
A = [1 1;4 -2]
[R,E]=spec(A)
//where E corresponds to eigen values
//And R corresponds to eigen vectors.
//Note that 0.9701425 = -4*0.2425356
//And we can assume 0.7071068 to be 1.
|