meshdomΒΆ

meshdom creates two matrices to create a dataset of the form z = f(x,y).

<xx, yy> = meshdom(x, y)

Return Value

xx and yy are matrizes.

Parameters

x

is a vector with one or more elements.

y

is a vector with one or more elemenst.

Example

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);

Example 2

* <xx, yy> = meshdom([1,2,3], [4,5,6])
* xx
    1.0000     2.0000     3.0000
    1.0000     2.0000     3.0000
    1.0000     2.0000     3.0000
* yy
    4.0000     4.0000     4.0000
    5.0000     5.0000     5.0000
    6.0000     6.0000     6.0000

Example 3

* <xx, yy> = meshdom([1], [4,5,6])
* xx
    1.0000
    1.0000
    1.0000
* yy
    4.0000
    5.0000
    6.0000

id-1320398