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: nldwrite.m
    path of file: ./repos/hctsa/Toolboxes/OpenTSTOOL/tstoolbox/@signal/private
    
    the code of the file until where you have to start completion: function status = nldwrite(filename, data, comment, param)

% status = nldwrite(filename, data, comment, param)
% data kann auch komplexwertig sein
% MATLAB-Schreibroutine für das NLD-Fileformat
% Christian Merkwirth August 1997


    
function status = nldwrite(filename, data, comment, param)

% status = nldwrite(filename, data, comment, param)
% data kann auch komplexwertig sein
% MATLAB-Schreibroutine für das NLD-Fileformat
% Christian Merkwirth August 1997

TSTOOL_REVISION = '1.0';		% 30.Sep.1997 cmerk


[fid, message] = fopen(filename, 'w', 'ieee-le'); % Open for reading, binary low-end