Command: MatNormalize
- Updated2024-09-12
- 3 minute(s) read
Command: MatNormalize
Command: MatNormalize
Normalizes the elements of a matrix to the maximum value one.
Input Parameters
ChnList |
Specifies one or more channels. |
MatNormIP |
Specifies whether DIAdem overwrites the values of the input channels with the result values from the normalizing. |
| Note If you want to use waveform channels in this command, follow rule 2.3 for calculating with waveform channels. This rule applies to a column pair of matrix 1 and matrix 2. |
DIAdem divides each element of the matrix by the highest absolute value of the matrix and maps all matrix values onto the interval [-1,1].
![]() | Refer to the Help page 3D Basic Mathematics for further information. |
Examples
The following example normalizes the values which start with Grp/ChnZ, of the matrix which is defined by the channels. DIAdem saves the result matrix in the input channels.
| VBScript | Python |
Dim oMyChannelList Set oMyChannelList = Data.GetChannels("Grp/ChnZ*") Call MatNormalize(oMyChannelList, TRUE)
Assumption: A matrix has the following contents:
10 2 8 20 6 5 14 12 3
The highest absolute element is 20. The normalized matrix receives the values:
0.5 0.1 0.5 1 0.3 0.25 0.7 0.6 0.15
Dialog Box Call
Call SUDDlgShow("Main", ResourceDrv & "AnaMatNormalize")
Related Topics
Command: ChnConvexHull | Command: ChnD3Appr | Command: ChnD3Interp | Command: ChnD3InterpPoint | Command: ChnIsolinesCalc | Command: ChnMatConvert | Command: ChnNConvexHull | Command: MatAdd | Command: MatAppend | Command: MatChnConvert | Command: MatD3Appr | Command: MatD3Interp | Command: MatD3InterpPoint | Command: MatDiv | Command: MatExtremeValues | Command: MatIntegrate | Command: MatIsolinesCalc | Command: MatMul | Command: MatRelativize | Command: MatScalAdd | Command: MatScalMul | Command: MatSort | Command: MatSub | Command: MatSum | Command: MatTranspose | Command: MatVAlgebr | Command: MatVColumn | Command: MatVRow | Command: SubMat


