Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
testStraightExp.m File Reference

Go to the source code of this file.

Functions

 figure (1) clf hold on pcolor(X
f plot ([a(1) b(1)],[a(2) b(2)], 'k') axis equal num1
 figure (2) clf hold on pcolor(X

Variables

close all clear all clc a
 t =(b-a)/norm(b-a)
 N =50
 Ax =ones(N,N)*a(1)
 Ay =ones(N,N)*a(2)
 Bx =ones(N,N)*b(1)
 By =ones(N,N)*b(2)
 Tx =ones(N,N)*t(1)
 Ty =ones(N,N)*t(2)
 x =[0:N-1]/(N-1)
 y =[0:N-1]/(N-1)
 num =(Bx-X).*Tx+(By-Y).*Ty+sqrt((Bx-X).^2+(By-Y).^2)
 den =(Ax-X).*Tx+(Ay-Y).*Ty+sqrt((Ax-X).^2+(Ay-Y).^2)
 f =log(num./den)
 Y
 den1 =-(Bx-X).*Tx-(By-Y).*Ty+sqrt((Bx-X).^2+(By-Y).^2)
 f1 =log(num1./den1)

Function Documentation

◆ figure() [1/2]

figure ( 1 )

◆ figure() [2/2]

figure ( 2 )

◆ plot()

f1 plot ( 'k' )

Variable Documentation

◆ a

close all clear all clc a
Initial value:
=rand(2,1)
b=rand(2,1)
b
Definition int_R.m:16

Definition at line 5 of file testStraightExp.m.

◆ Ax

Ax =ones(N,N)*a(1)

Definition at line 10 of file testStraightExp.m.

◆ Ay

Ay =ones(N,N)*a(2)

Definition at line 11 of file testStraightExp.m.

◆ Bx

Bx =ones(N,N)*b(1)

Definition at line 12 of file testStraightExp.m.

◆ By

By =ones(N,N)*b(2)

Definition at line 13 of file testStraightExp.m.

◆ den

den =(Ax-X).*Tx+(Ay-Y).*Ty+sqrt((Ax-X).^2+(Ay-Y).^2)

Definition at line 22 of file testStraightExp.m.

◆ den1

den1 =-(Bx-X).*Tx-(By-Y).*Ty+sqrt((Bx-X).^2+(By-Y).^2)

Definition at line 33 of file testStraightExp.m.

◆ f

f =log(num./den)

Definition at line 23 of file testStraightExp.m.

◆ f1

f1 =log(num1./den1)

Definition at line 34 of file testStraightExp.m.

◆ N

N =50

Definition at line 9 of file testStraightExp.m.

◆ num

num =(Bx-X).*Tx+(By-Y).*Ty+sqrt((Bx-X).^2+(By-Y).^2)

Definition at line 21 of file testStraightExp.m.

◆ t

t =(b-a)/norm(b-a)

Definition at line 7 of file testStraightExp.m.

◆ Tx

Tx =ones(N,N)*t(1)

Definition at line 14 of file testStraightExp.m.

◆ Ty

Ty =ones(N,N)*t(2)

Definition at line 15 of file testStraightExp.m.

◆ x

x =[0:N-1]/(N-1)

Definition at line 17 of file testStraightExp.m.

◆ Y

f1 Y

Definition at line 28 of file testStraightExp.m.

◆ y

REAL y =[0:N-1]/(N-1)

Definition at line 18 of file testStraightExp.m.