| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Neural Network Toolbox |
| Contents | Index |
Z = convwf(W,P) dim = convwf('size',S,R,FP) dp = convwf('dp',W,P,Z,FP) dw = convwf('dw',W,P,Z,FP) info = convwf(code)
convwf is the convolution weight function. Weight functions apply weights to an input to get weighted inputs.
convwf(code) returns information about this function. The following codes are defined:
convwf('size',S,R,FP) takes the layer dimension S, input dimension R, and function parameters, and returns the weight size.
convwf('dp',W,P,Z,FP) returns the derivative of Z with respect to P.
convwf('dw',W,P,Z,FP) returns the derivative of Z with respect to W.
Here you define a random weight matrix W and input vector P and calculate the corresponding weighted input Z.
To change a network so an input weight uses convwf, set net.inputWeight{i,j}.weightFcn to 'convwf'. For a layer weight, set net.layerWeight{i,j}.weightFcn to 'convwf'.
In either case, call sim to simulate the network with convwf.
| Provide feedback about this page |
![]() | confusion | disp | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |