Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.2 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilabヘルプ >> Elementary Functions > elementarymatrices > meshgrid

meshgrid

行列または3次元配列を作成

呼び出し手順

[X, Y] = meshgrid(x)

[X, Y] = meshgrid(x,y)

[X, Y, Z] = meshgrid(x,y,z)

引数

x, y, z

ベクトル

X, Y, Z

入力引数が2個の場合は行列, 入力引数が3個の場合は3次元配列

説明

行列または3次元配列を作成します.

x = -1:0.1:1;
y = -1:0.1:1;

[X,Y] = meshgrid(x,y);

for i=1:size(X,1)
  for j=1:size(X,2)
    Z(i,j) = sinc(2*%pi*X(i,j)*Y(i,j));
  end
end

surf(X,Y,Z)

参照

  • ndgrid — 多次元関数評価用グリッドの配列
Report an issue
<< logspace elementarymatrices ndgrid >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Apr 01 10:24:59 CEST 2015