Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.0 - English

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

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.

Scilab help >> Graphics > 3d_plot > eval3d

eval3d

values of a function on a grid

Calling Sequence

[z]=eval3d(fun,x,[y])

Arguments

fun

function accepting vectors as arguments.

x,y

2 vectors of size (1,n1) and (1,n2). (default value for y : y=x).

z

matrix of size (n1,n2).

Description

This function returns a matrix z(n1,n2). z(i,j)=fun(x(i),y(j)). If the function fun does not accept arguments of type vector use the primitive feval.

Examples

x=-5:5;y=x;
deff('[z]=f(x,y)',['z= x.*y']);
z=eval3d(f,x,y);
plot3d(x,y,z);

deff('[z]=f(x,y)',['z= x*y']);
z=feval(x,y,f);
plot3d(x,y,z);

See Also

  • feval — multiple evaluation
Report an issue
<< contour 3d_plot eval3dp >>

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:
Mon Oct 01 17:34:52 CEST 2012