.. highlightlang:: us .. _meshdom: meshdom ======= .. index:: meshdom .. us.tag meshdom ENGLISH :ref:`meshdom` creates two matrices to create a dataset of the form z = f(x,y). .. function:: = meshdom(x, y) .. us.return **Return Value** *xx* and *yy* are matrizes. .. us.params **Parameters** .. uparam:: x is a vector with one or more elements. .. uparam:: y is a vector with one or more elemenst. .. us.example **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); = 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** :: * = 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** :: * = meshdom([1], [4,5,6]) * xx 1.0000 1.0000 1.0000 * yy 4.0000 5.0000 6.0000 .. seealso:: :ref:`overview-mathematic`, :ref:`linspace`, :ref:`XYZCreate` :sub:`id-1320398`