- (MATLAB
function meshgrid is used here to
generate square matrices I and J
containing 1 : n {\displaystyle 1:n} ): [J,I] =
meshgrid(1:n); A = mod(I...
- cos(theta)) ) ymax = np.ceil(max(1, ymax)) xmin = -xmax ymin = -ymax (y, x) = np.
meshgrid(np.arange(ymin, ymax + 1), np.arange(xmin, xmax + 1)) #
Rotation x_theta...
- parameters: A = 1; x0 = 0; y0 = 0;
sigma_X = 1;
sigma_Y = 2; [X, Y] =
meshgrid(-5:.1:5, -5:.1:5); for
theta = 0:pi/100:pi a = cos(theta)^2 / (2 * sigma_X^2)...
-
Wavefront .obj files, or
RenderMan RIB file from
numpy import linspace,
meshgrid, array, sin, cos, pi, abs from scipy.special
import sph_harm from mayavi...
- Octave/MATLAB Ffun = @(X, Y)(2 - Y) .* Y; %
function f(x,y)=(2-y)y [X, Y] =
meshgrid(0:.2:6, -1:.2:3); %
choose the plot
sizes DY = Ffun(X, Y); DX = ones(size(DY));...
- plot
slope fields. funn = @(x, y)y-x; %
function f(x, y) = y-x [x, y] =
meshgrid(-5:0.5:5); %
intervals for x and y
slopes = funn(x, y); %
matrix of slope...
- ****ert len(values2) == n, "Both
lists have to be of
equal length" i, j = np.
meshgrid(np.arange(n), np.arange(n)) a = np.argsort(values1) b = np.argsort(values2)...
- pi; wmin = -pi; deta = (etamax-etamin)/n; dw = (wmax-wmin)/n; [i,j] =
meshgrid(1:n+1,1:n+1) eta =
etamin + (i-1) * deta; w = wmin + (j-1) * dw; x = a(1)...