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: reshape.m
    path of file: ./repos/scGEAToolbox/tensor_toolbox/@tensor
    
    the code of the file until where you have to start completion: function t = reshape(t, siz)
%RESHAPE Change tensor size.

    
function t = reshape(t, siz)
%RESHAPE Change tensor size.
%
%   RESHAPE(X,SIZ) returns the tensor whose elements
%   have been reshaped to the appropriate size.
%
%   Examples
%   X = tensor(rand(2,3,4));
%   reshape(X,[4,3,2])
%
%   See also TENSOR, TENSOR/SQUEEZE, TENSOR/PERMUTE.
%
%Tensor Toolbox for MATLAB: <a href="https://www.tensortoolbox.org">www.tensortoolbox.org</a>


if prod(t.size) ~= prod(siz)
    error('Number of elements cannot change');
end