代码搜索:gradient

找到约 2,951 项符合「gradient」的源代码

代码结果 2,951
www.eeworm.com/read/480529/6665747

txt 06-22.txt

例6-22 使用gradient函数求近似梯度。 解:在命令窗口中输入如下命令,并按Enter键确认。 >> [x,y] = meshgrid(-2:.2:2, -2:.2:2); >> z = x .* exp(-x.^2 - y.^2); >> [px,py] = gradient(z,.2,.2); >> contour(z) >> hold on >> quiver(px,
www.eeworm.com/read/480200/6668035

m llgrad.m

function [err1, err2] = llGrad(p1,p2,type,tolGrad,tolEval) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % [err1,err2] = llGrad(p1, p2, type [, tolGrad ,tolEva
www.eeworm.com/read/480149/6677664

m quiver531.m

function quiver531 figure(1) [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)
www.eeworm.com/read/409851/11310479

m shili24.m

function shili24 h0=figure('toolbar','none',... 'position',[200 150 450 350],... 'name','实例24'); subplot(2,2,1) z=peaks; ribbon(z) title('Figure1') subplot(2,2,2) [x,y,z]=peaks(15);
www.eeworm.com/read/409582/11318835

txt bp.txt

例1 采用动量梯度下降算法训练 BP 网络。 训练样本定义如下: 输入矢量为 p =[-1 -2 3 1 -1 1 5 -3] 目标矢量为 t = [-1 -1 1 1] 解:本例的 MATLAB 程序如下: close all clear echo on clc % NEWFF——生成
www.eeworm.com/read/263879/11338069

m quadeg1.m

%微积分例1:一元函数求导(diff,gradient) clear;close; x=-2*pi:0.1:2*pi; y=sin(x); dy=diff(y)./diff(x); plot(x,y,x(1:length(x)-1),dy); hold on; yx =gradient(y,x); plot(x,yx,'ro');
www.eeworm.com/read/263879/11338081

m quadeg2.m

%微积分例2:二元函数求导(gradient) clear;close; xa=-1:0.1:1;ya=-1:0.1:1; [x,y]=meshgrid(xa,ya); F=y.*x.^2+y.^3.*x; [fx,fy]=gradient(F,xa,ya); subplot(1,2,1);mesh(fx); subplot(1,2,2);mesh(fy);
www.eeworm.com/read/409142/11344888

m quiver531.m

function quiver531 figure(1) [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)
www.eeworm.com/read/407840/11410241

m shili24.m

function shili24 h0=figure('toolbar','none',... 'position',[200 150 450 350],... 'name','实例24'); subplot(2,2,1) z=peaks; ribbon(z) title('Figure1') subplot(2,2,2) [x,y,z]=peaks(15);
www.eeworm.com/read/406239/11446578

txt bp.example.txt

例1 采用动量梯度下降算法训练 BP 网络。 训练样本定义如下: 输入矢量为 p =[-1 -2 3 1 -1 1 5 -3] 目标矢量为 t = [-1 -1 1 1] 解:本例的 MATLAB 程序如下: close all clear echo on clc % NEWFF——生成