代码搜索:gradient
找到约 2,951 项符合「gradient」的源代码
代码结果 2,951
www.eeworm.com/read/324902/13238511
m 6-26.m
[X,Y] = meshgrid(-2:.2:2);
Z = X.*exp(-X.^2 - Y.^2);
[DX,DY] = gradient(Z,.2,.2);
%梯度计算
contour(X,Y,Z)
%轮廓图绘制
hold on
quiver(X,Y,DX,DY)
%箭头图绘制
grid off
hold off
title '二维箭头图示例'
www.eeworm.com/read/323989/13298140
h gltexfont.h
/*
Copyright (c) 1999 Nate Miller
Notice: Usage of any code in this file is subject to the rules
described in the LICENSE.TXT file included in this directory.
Reading, compil
www.eeworm.com/read/323831/13314288
h cgradientfunction.h
// Copyright (C) 2003
// Gerhard Neumann (gerhard@igi.tu-graz.ac.at)
//
// This file is part of RL Toolbox.
// http://www.igi.tugraz.at/ril_toolbox
//
// All rights reserved.
www.eeworm.com/read/323831/13314385
h cvetraces.h
// Copyright (C) 2003
// Gerhard Neumann (gerhard@igi.tu-graz.ac.at)
//
// This file is part of RL Toolbox.
// http://www.igi.tugraz.at/ril_toolbox
//
// All rights reserved.
www.eeworm.com/read/136685/13366323
m exm060512_1.m
shg;clf;[X,Y] = meshgrid([-2:.2:2]);Z = 4*X.*exp(-X.^2-Y.^2);
G=gradient(Z);subplot(1,2,1),surf(X,Y,Z,G)
subplot(1,2,2),h=surf(X,Y,Z,G);
rotate(h,[-2,-2,0],30,[2,2,0]),colormap(jet)
www.eeworm.com/read/136685/13366435
m exm040522_1.m
F=[1,2,3;4,5,6;7,8,9]
Dx=diff(F) %相邻行差分
Dx_2=diff(F,1,2) %相邻列差分。第三输入宗量2表示“列”差分。
[FX,FY]=gradient(F) %数据点步长默认为1
[FX_2,FY_2]=gradient(F,0.5) %数据点步长为0.5
www.eeworm.com/read/322707/13370270
java example6_4.java
/* java 2D渐变色填充图形 */
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.*;
public class Example6_4 extends Frame
{
private class WindowCloser extends WindowAdapter
{ pub
www.eeworm.com/read/319871/13441060
m exm07512_1.m
%exm07512_1.m
shg;clf;
[X,Y] = meshgrid([-2:.2:2]);
Z = 4*X.*exp(-X.^2-Y.^2);
G=gradient(Z);
subplot(1,2,1),surf(X,Y,Z,G)
subplot(1,2,2),h=surf(X,Y,Z,G);
rotate(h,[-2,-2,0],30,[2,2,0])
colorma
www.eeworm.com/read/319404/13452459
m ex2333.m
%例23-33 向量场图
[x,y,z]=peaks(20);
contour(x,y,z,10)
[u,v]=gradient(z);
hold on
quiver(x,y,u,v)
www.eeworm.com/read/319335/13453669
m exm060512_1.m
shg;clf;[X,Y] = meshgrid([-2:.2:2]);Z = 4*X.*exp(-X.^2-Y.^2);
G=gradient(Z);subplot(1,2,1),surf(X,Y,Z,G)
subplot(1,2,2),h=surf(X,Y,Z,G);
rotate(h,[-2,-2,0],30,[2,2,0]),colormap(jet)