meshdom erzeugt zwei Matrizen zur Darstellung von z = f(x,y) Datensätzen.
Returnwert
xx und yy sind Matrizen.
Parameter
ist ein Vektor.
ist ein Vektor.
Beispiel
nRC = 40
xmin = 0.05-PI/2;
xmax = 0.05+PI;
ymin = -PI/2;
ymax = PI/2
x = linspace(xmin, xmax, nRC);
y = linspace(ymin, ymax, nRC);
<xx, yy> = meshdom(x,y);
zz = real(tan(xx + 1i * yy));
hDoc = DocCreate();
hPage = PageCreate();
DocAddPage(hDoc, hPage);
hLayer = LayerCreate();
PageAddLayer(hPage, hLayer);
hdata = XYZCreateFromMatrix("real(tan(xx + 1i * y))", ..
zz, [xmin, ymin, xmax, ymax]);
LayerAddDataset(hLayer, hdata);
LayerAutoScale(hLayer);
PageReplot(hPage);
Siehe auch
id-1320398