normal
algorithm
- calculates components of normal vectors of a 2d field
- using matlab tool gradient
- note: normal calculates coordinates of normal vectors of values of a matrix;
- use extract after calculation, to extract normals along an isolevel e.g. flame front
syntax
[xn,yn]=normal(X,Y,variable)
example for input
[xn,yn]=normal(X,Y,Z)
input arguments
Name | description |
---|---|
X,Y | vectors defining the rectangular domain |
variable | arbitrary variable, for example flame front |
output arguments
Name | description |
---|---|
xn ,yn | components of normal vector |
matlab tools required
- gradient