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: CEDS64SetTextMarkChan.m
    path of file: ./repos/PsPM/src/Import/CEDS64ML
    
    the code of the file until where you have to start completion: %{
    Copyright (C) Cambridge Electronic Design Limited 2014
    Author: James Thompson
    Web: www.ced.co.uk email: james@ced.co.uk, softhelp@ced.co.uk

    This file is part of CEDS64ML, a MATLAB interface to the SON64 library.

    CEDS64ML is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, eit
    
function [ iOk ] = CEDS64SetTextMarkChan( fhand, iChan, dRate, iMax )
%CEDS64SETTEXTMARKCHAN Creates a new text marker channel
%   [ iOk ] =CEDS64SetTextMarkChan( fhand, iChan, dRate, iMax )
%   Inputs
%   fhand - An integer handle to an open file
%   iChan - An integer channel number
%   dRate - The rate of the new channel as a double
%   iMax - Length of the text string that can be attatched to each marker
%   channel
%   Outputs
%   iOk - 0 if the channel was created correctly, otherwise a negative
%   error code.

if (nargin ~= 4)
    iOk = -22;
    return;
end