forked from johannesgerer/jburkardt-m
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tensor_grid_display.html
248 lines (213 loc) · 6.12 KB
/
tensor_grid_display.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
<html>
<head>
<title>
TENSOR_GRID_DISPLAY - Plot Points in a 1D/2D/3D Tensor Grid
</title>
</head>
<body bgcolor="#EEEEEE" link="#CC0000" alink="#FF3300" vlink="#000055">
<h1 align = "center">
TENSOR_GRID_DISPLAY <br> Plot Points in a 1D/2D/3D Tensor Grid
</h1>
<hr>
<p>
<b>TENSOR_GRID_DISPLAY</b>
is a MATLAB program which
can generate and display the points of a 1D/2D/3D tensor product grid
formed by the same rule in each dimension, but allowing the order of
points in each dimensio to vary.
</p>
<p>
For instance, it is legal to request a 3D grid using the Gauss-Legendre
rule in each dimension, but with 3 points in X, 9 points in Y, and
5 points in Z.
</p>
<h3 align = "center">
Usage:
</h3>
<p>
<blockquote>
<b>tensor_grid_display</b> ( <i>m</i>, <i>n_1d</i>, <i>rule</i> )
</blockquote>
where
<ul>
<li>
<i>m</i> is the spatial dimension (1, 2 or 3);
</li>
<li>
<i>n_1d</i> is a vector containing the order of the rule in each dimension.
A rule with 3 points in X, 9 points in Y and 5 points in Z would specify
[3,9,5];
</li>
<li>
<i>rule</i> is a quoted string indicating the quadrature rule to be used.
</li>
</ul>
</p>
<p>
The codes for quadrature rules are:
<ul>
<li>
<b>'CC'</b>, Clenshaw-Curtis,
</li>
<li>
<b>'F1'</b>, Fejer Type 1,
</li>
<li>
<b>'F2'</b>, Fejer Type 2,
</li>
<li>
<b>'GL'</b>, Gauss-Legendre,
</li>
<li>
<b>'GP'</b>, Gauss-Patterson, (orders 1, 3, 7, 15, 31, 63, 127, 255 or 511 only)
</li>
<li>
<b>'HR'</b>, Hermite,
</li>
<li>
<b>'JC'</b>, Jacobi,
</li>
<li>
<b>'LG'</b>, Laguerre,
</li>
<li>
<b>'NCC'</b>, Newton-Cotes Closed,
</li>
<li>
<b>'NCO'</b>, Newton-Cotes Open,
</li>
<li>
<b>'NCOH'</b>, Newton-Cotes Open Half.
</li>
</ul>
</p>
<h3 align = "center">
Licensing:
</h3>
<p>
The computer code and data files made available on this web page
are distributed under
<a href = "../../txt/gnu_lgpl.txt">the GNU LGPL license.</a>
</p>
<h3 align = "center">
Languages:
</h3>
<p>
<b>TENSOR_GRID_DISPLAY</b> is available in
<a href = "../../m_src/tensor_grid_display/tensor_grid_display.html">a MATLAB version</a>.
</p>
<h3 align = "center">
Related Data and Programs:
</h3>
<p>
<a href = "../../m_src/cc_display/cc_display.html">
CC_DISPLAY</a>,
a MATLAB program which
displays points on various grids derived from the Clenshaw Curtis rule.
</p>
<p>
<a href = "../../m_src/circle_grid_display/circle_grid_display.html">
CIRCLE_GRID_DISPLAY</a>,
a MATLAB program which reads a matrix of integers, and draws a corresponding
grid of circles filled with color.
</p>
<p>
<a href = "../../m_src/gl_display/gl_display.html">
GL_DISPLAY</a>,
a MATLAB program which
displays points on various grids derived from the Gauss-Legendre rule.
</p>
<p>
<a href = "../../m_src/grid_display/grid_display.html">
GRID_DISPLAY</a>,
a MATLAB program which
reads a file of points on a grid or sparse grid, displays the grid and
saves the image in a PNG file;
</p>
<p>
<a href = "../../m_src/grids_display/grids_display.html">
GRIDS_DISPLAY</a>,
a MATLAB program which
reads two files of grids or sparse grids, displays the first with
hollow blue dots, the second with red dots.
</p>
<p>
<a href = "../../m_src/nested_sequence_display/nested_sequence_display.html">
NESTED_SEQUENCE_DISPLAY</a>,
a MATLAB program which
displays a set of nested sequences.
</p>
<p>
<a href = "../../m_src/ply_display/ply_display.html">
PLY_DISPLAY</a>,
a MATLAB program which
displays an image of a 3D graphics file in PLY format;
</p>
<p>
<a href = "../../m_src/quadrule/quadrule.html">
QUADRULE</a>,
a MATLAB library which
defines quadrature rules for 1D domains.
</p>
<p>
<a href = "../../m_src/sequence_streak_display/sequence_streak_display.html">
SEQUENCE_STREAK_DISPLAY</a>,
a MATLAB program which
displays a streak plot of a numeric sequence;
</p>
<p>
<a href = "../../m_src/xy_display/xy_display.html">
XY_DISPLAY</a>,
a MATLAB program which
can read
a file of coordinates of points, and display an image of the
points in a MATLAB graphics window.
</p>
<p>
<a href = "../../cpp_src/xy_display_opengl/xy_display_opengl.html">
XY_DISPLAY_OPENGL</a>,
a C++ program which
can read a file containing 2D point coordinates, and display
an image of those points using Open GL.
</p>
<h3 align = "center">
Source Code:
</h3>
<p>
<ul>
<li>
<a href = "tensor_grid_display.m">tensor_grid_display.m</a>,
the source code.
</li>
</ul>
</p>
<h3 align = "center">
Examples:
</h3>
<p>
<ul>
<li>
<a href = "gl_1d.png">gl_1d.png</a>,
the plot for the command <b>tensor_grid_display ( 1, 15, 'gl' )</b>
</li>
<li>
<a href = "cc_2d.png">cc_2d.png</a>,
the plot for the command <b>tensor_grid_display ( 2, [33,17], 'cc' )</b>
</li>
<li>
<a href = "ncc_3d.png">ncc_3d.png</a>,
the plot for the command <b>tensor_grid_display ( 3, [7,7,7], 'ncc' )</b>
</li>
</ul>
</p>
<p>
You can go up one level to <a href = "../m_src.html">
the MATLAB source codes</a>.
</p>
<hr>
<i>
Last revised on 12 October 2011.
</i>
<!-- John Burkardt -->
</body>
</html>