x=0:0.1:1.5

x =

  Columns 1 through 5 

         0    0.1000    0.2000    0.3000    0.4000

  Columns 6 through 10 

    0.5000    0.6000    0.7000    0.8000    0.9000

  Columns 11 through 15 

    1.0000    1.1000    1.2000    1.3000    1.4000

  Column 16 

    1.5000

diary off
x2=eval(x2)
 
x2 =
 
-2*x1+3/2
 
syms x1 x2

x=[x1 x2]
 
x =
 
[ x1, x2]
 
x2=solve(x*v-a,x2)
 
x2 =
 
-2*x1+3/2
 
x1=0:.1:1.5

x1 =

  Columns 1 through 5 

         0    0.1000    0.2000    0.3000    0.4000

  Columns 6 through 10 

    0.5000    0.6000    0.7000    0.8000    0.9000

  Columns 11 through 15 

    1.0000    1.1000    1.2000    1.3000    1.4000

  Column 16 

    1.5000

X2=eval(x2)

X2 =

  Columns 1 through 5 

    1.5000    1.3000    1.1000    0.9000    0.7000

  Columns 6 through 10 

    0.5000    0.3000    0.1000   -0.1000   -0.3000

  Columns 11 through 15 

   -0.5000   -0.7000   -0.9000   -1.1000   -1.3000

  Column 16 

   -1.5000

plot(x1,X2,'o')
axis equal
text(v1,v2+.3,'v')
x2
 
x2 =
 
-2*x1+3/2
 
x1=0:.1:1.5

x1 =

  Columns 1 through 5 

         0    0.1000    0.2000    0.3000    0.4000

  Columns 6 through 10 

    0.5000    0.6000    0.7000    0.8000    0.9000

  Columns 11 through 15 

    1.0000    1.1000    1.2000    1.3000    1.4000

  Column 16 

    1.5000

saddle2
clear saddle1
figure(2)
saddle1
diary off
