| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>Matrix</title> |
| 3 | <style> |
| 4 | td { padding-left: 5pt; padding-right: 5pt; } |
| 5 | th { padding-left: 5pt; padding-right: 5pt; } |
| 6 | code { white-space: pre-wrap; } |
| 7 | dd { white-space: pre-wrap; } |
| 8 | </style> |
| 9 | </head><body bgcolor="#FFFFFF"> |
| 10 | |
| 11 | <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b> |
| 12 | Matrix |
| 13 | </b></font></table></table> |
| 14 | <p>One of the <a href="Types_of_objects.html">types of objects</a> in Praat. A Matrix object represents a function <i>z</i> (<i>x</i>, <i>y</i>) on the domain [<i>x</i><sub><i>min</i></sub>, <i>x</i><sub><i>max</i></sub>] × [<i>y</i><sub><i>min</i></sub>, <i>y</i><sub><i>max</i></sub>]. The domain has been sampled in the <i>x</i> and <i>y</i> directions with constant sampling intervals (<i>dx</i> and <i>dy</i>) along each direction. The samples are thus <i>z</i> [<i>i</i><sub><i>y</i></sub>] [<i>i</i><sub><i>x</i></sub>], <i>i</i><sub><i>x</i></sub> = 1 ... <i>n</i><sub><i>x</i></sub>, <i>i</i><sub><i>y</i></sub> = 1 ... <i>n</i><sub><i>y</i></sub>. The samples represent the function values <i>z</i> (<i>x</i><sub>1</sub> + (<i>i</i><sub><i>x</i></sub> - 1) <i>dx</i>, <i>y</i><sub>1</sub> + (<i>i</i><sub><i>y</i></sub> - 1) <i>dy</i>).</p> |
| 15 | <h2>Matrix commands</h2> |
| 16 | <p>Creation:</p> |
| 17 | <dl> |
| 18 | <dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Create_Matrix___.html">Create Matrix...</a></dd> |
| 19 | <dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Create_simple_Matrix___.html">Create simple Matrix...</a></dd> |
| 20 | <dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Read_from_file___.html">Read from file...</a></dd> |
| 21 | <dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Read_Matrix_from_raw_text_file___.html">Read Matrix from raw text file...</a></dd> |
| 22 | <dd style="position:relative;padding-left:1em;text-indent:-2em">• <b>Read Matrix from LVS AP file...</b></dd> |
| 23 | </dl> |
| 24 | <p>Drawing:</p> |
| 25 | <dl> |
| 26 | <dd style="position:relative;padding-left:1em;text-indent:-2em">• <b>Matrix: Draw rows...</b></dd> |
| 27 | <dd style="position:relative;padding-left:1em;text-indent:-2em">• <b>Matrix: Draw contours...</b></dd> |
| 28 | <dd style="position:relative;padding-left:1em;text-indent:-2em">• <b>Matrix: Paint contours...</b></dd> |
| 29 | <dd style="position:relative;padding-left:1em;text-indent:-2em">• <b>Matrix: Paint cells...</b></dd> |
| 30 | <dd style="position:relative;padding-left:1em;text-indent:-2em">• <b>Matrix: Scatter plot...</b></dd> |
| 31 | <dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Matrix__Draw_as_squares___.html">Matrix: Draw as squares...</a></dd> |
| 32 | <dd style="position:relative;padding-left:1em;text-indent:-2em">• <b>Matrix: Draw value distribution...</b></dd> |
| 33 | <dd style="position:relative;padding-left:1em;text-indent:-2em">• <b>Matrix: Paint surface...</b></dd> |
| 34 | </dl> |
| 35 | <p>Modification:</p> |
| 36 | <dl> |
| 37 | <dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Matrix__Formula___.html">Matrix: Formula...</a></dd> |
| 38 | <dd style="position:relative;padding-left:1em;text-indent:-2em">• <b>Matrix: Scale...</b></dd> |
| 39 | </dl> |
| 40 | <h2>Inside a Matrix object</h2> |
| 41 | <p>With <a href="Inspect.html">Inspect</a>, you will see the following attributes.</p> |
| 42 | <dl> |
| 43 | <dt><i>xmin</i>, <i>xmax</i> ≥ <i>xmin</i> |
| 44 | <dd><i>x</i> domain.</dd> |
| 45 | <dt><i>nx</i> ≥ 1 |
| 46 | <dd>number of columns.</dd> |
| 47 | <dt><i>dx</i> > 0.0 |
| 48 | <dd>distance between columns.</dd> |
| 49 | <dt><i>x1</i> |
| 50 | <dd><i>x</i> value associated with first column.</dd> |
| 51 | <dt><i>ymin</i>, <i>ymax</i> ≥ <i>ymin</i> |
| 52 | <dd><i>y</i> domain.</dd> |
| 53 | <dt><i>ny</i> ≥ 1 |
| 54 | <dd>number of rows.</dd> |
| 55 | <dt><i>dy</i> > 0.0 |
| 56 | <dd>distance between rows.</dd> |
| 57 | <dt><i>y1</i> |
| 58 | <dd><i>y</i> value associated with first row.</dd> |
| 59 | <dt><i>z</i> [1..<i>ny</i>] [1..<i>nx</i>] |
| 60 | <dd>The sample values.</dd> |
| 61 | </dl> |
| 62 | <p>After creation of the <b>Matrix</b>, <i>xmin</i>, <i>xmax</i>, <i>ymin</i>, <i>ymax</i>, <i>nx</i>, <i>ny</i>, <i>dx</i>, <i>dy</i>, <i>x1</i>, and <i>y1</i> do not usually change. The contents of <i>z</i> do.</p> |
| 63 | <p>Normally, you will want <i>xmin</i> ≤ <i>x1</i> and <i>xmax</i> ≥ <i>x1</i> + (<i>nx</i> - 1) <i>dx</i>.</p> |
| 64 | <h2>Example: simple matrix</h2> |
| 65 | <p>If a simple matrix has <i>x</i> equal to column number and <i>y</i> equal to row number, it has the following attributes:</p> |
| 66 | <dl> |
| 67 | <dd style="position:relative;padding-left:1em;text-indent:-2em"><i>xmin</i> = 1; <i>xmax</i> = <i>nx</i>; <i>dx</i> = 1; <i>x1</i> = 1;</dd> |
| 68 | <dd style="position:relative;padding-left:1em;text-indent:-2em"><i>ymin</i> = 1; <i>ymax</i> = <i>ny</i>; <i>dy</i> = 1; <i>y1</i> = 1;</dd> |
| 69 | </dl> |
| 70 | <h2>Example: sampled signal</h2> |
| 71 | <p>If the matrix represents a sampled signal of 1 second duration with a sampling frequency of 10 kHz, it has the following attributes:</p> |
| 72 | <dl> |
| 73 | <dd style="position:relative;padding-left:1em;text-indent:-2em"><i>xmin</i> = 0.0; <i>xmax</i> = 1.0; <i>nx</i> = 10000 ; <i>dx</i> = 1.0·10<sup>-4</sup>; <i>x1</i> = 0.5·10<sup>-4</sup>;</dd> |
| 74 | <dd style="position:relative;padding-left:1em;text-indent:-2em"><i>ymin</i> = 1; <i>ymax</i> = 1; <i>ny</i> = 1; <i>dy</i> = 1; <i>y1</i> = 1;</dd> |
| 75 | </dl> |
| 76 | <h2>Example: complex signal</h2> |
| 77 | <p>If the matrix represents a complex spectrum derived with an <a href="FFT.html">FFT</a> from the sound of example 2, it has the following attributes:</p> |
| 78 | <dl> |
| 79 | <dd style="position:relative;padding-left:1em;text-indent:-2em"><i>xmin</i> = 0.0; <i>xmax</i> = 5000.0; <i>nx</i> = 8193 ; <i>dx</i> = 5000.0 / 8192; <i>x1</i> = 0.0;</dd> |
| 80 | <dd style="position:relative;padding-left:1em;text-indent:-2em"><i>ny</i> = 2 (real and imaginary part);</dd> |
| 81 | <dd style="position:relative;padding-left:1em;text-indent:-2em"><i>ymin</i> = 1 (first row, real part);</dd> |
| 82 | <dd style="position:relative;padding-left:1em;text-indent:-2em"><i>ymax</i> = 2 (second row, imaginary part);</dd> |
| 83 | <dd style="position:relative;padding-left:1em;text-indent:-2em"><i>dy</i> = 1; <i>y1</i> = 1; (so that <i>y</i> is equal to row number)</dd> |
| 84 | </dl> |
| 85 | <h3>Links to this page</h3> |
| 86 | <ul> |
| 87 | <li><a href="ActivationList.html">ActivationList</a> |
| 88 | <li><a href="BarkFilter.html">BarkFilter</a> |
| 89 | <li><a href="BarkSpectrogram.html">BarkSpectrogram</a> |
| 90 | <li><a href="CC__To_Matrix.html">CC: To Matrix</a> |
| 91 | <li><a href="Create_simple_Matrix_from_values___.html">Create simple Matrix from values...</a> |
| 92 | <li><a href="Eigen___Matrix__To_Matrix__project_columns____.html">Eigen & Matrix: To Matrix (project columns)...</a> |
| 93 | <li><a href="Eigen___Matrix__To_Matrix__project_rows____.html">Eigen & Matrix: To Matrix (project rows)...</a> |
| 94 | <li><a href="Eigen__Extract_eigenvector___.html">Eigen: Extract eigenvector...</a> |
| 95 | <li><a href="FormantFilter.html">FormantFilter</a> |
| 96 | <li><a href="Formulas_1_6__Formulas_for_creation.html">Formulas 1.6. Formulas for creation</a> |
| 97 | <li><a href="Formulas_8__Attributes_of_objects.html">Formulas 8. Attributes of objects</a> |
| 98 | <li><a href="GaussianMixture___PCA__To_Matrix__density____.html">GaussianMixture & PCA: To Matrix (density)...</a> |
| 99 | <li><a href="LPC__To_Matrix.html">LPC: To Matrix</a> |
| 100 | <li><a href="Matrix__Draw_distribution___.html">Matrix: Draw distribution...</a> |
| 101 | <li><a href="Matrix__Paint_cells___.html">Matrix: Paint cells...</a> |
| 102 | <li><a href="Matrix__Set_value___.html">Matrix: Set value...</a> |
| 103 | <li><a href="Matrix__Solve_equation___.html">Matrix: Solve equation...</a> |
| 104 | <li><a href="Matrix__To_TableOfReal.html">Matrix: To TableOfReal</a> |
| 105 | <li><a href="MelSpectrogram.html">MelSpectrogram</a> |
| 106 | <li><a href="PatternList.html">PatternList</a> |
| 107 | <li><a href="Photo.html">Photo</a> |
| 108 | <li><a href="RealTier.html">RealTier</a> |
| 109 | </ul> |
| 110 | <hr> |
| 111 | <address> |
| 112 | <p>© ppgb 20240712</p> |
| 113 | </address> |
| 114 | </body> |
| 115 | </html> |