Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes

Change language to:
English - Français - 日本語 -

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

Manual Scilab >> Funções Elementares > meshgrid

meshgrid

cria matrizes ou arrays 3-D

Seqüência de Chamamento

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

Parâmetros

x, y, z

vetores

X, Y, Z

matrizes, no caso de dois argumentos de entrada, arrays 3-D, no caso de 3 argumentos de entrada.

Descrição

...

Exemplos

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)

Ver Também

Autor

Farid Belahcene

<< max Funções Elementares min >>

Copyright (c) 2022-2023 (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 Jan 26 16:24:34 CET 2011