You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: convolution1d.m
    path of file: ./repos/transformer-models/+transformer/+layer
    
    the code of the file until where you have to start completion: function Z = convolution1d(X, W, b)

    
function Z = convolution1d(X, W, b)
% convolution1d   A fully connected layer
%
%   Z = convolution1d(X, W, b) applies a fully connected layer. We call it
%   1-D convolution because this is what it's called in the original GPT-2
%   repo.
%
%   Inputs:
%       X   - A numInputFeatures-by-numInputSubwords array.
%       W   - A numOutputFeatures-by-numInputFeatures weight matrix.
%       b   - A numOutputFeatures-by-1 bias vector.
%
%   Output:
%       Z   - A numOutputFeatures-by-numInputSubwords array.

Z = dlmtimes(W,X) + b;

end