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: idealMasks.m
    path of file: ./repos/CellExplorer/toolboxes/+iosr/+bss
    
    the code of the file until where you have to start completion: function [irm,ibm] = idealMasks(st,si,q,a)

    
function [irm,ibm] = idealMasks(st,si,q,a)
%IDEALMASKS Calculate ideal time-frequency masks from STFTs
% 
%   IRM = IOSR.BSS.IDEALMASKS(ST,SI) calculates the ideal ratio mask (IRM)
%   using target STFT ST and interferer STFT SI. ST and SI must be the same
%   size; IRM is the same size as ST and SI.
% 
%   [IRM,IBM] = IOSR.BSS.IDEALMASKS(...) returns the ideal binary mask
%   (IBM).
% 
%   IRM = IOSR.BSS.IDEALMASKS(ST,SI,Q) uses the exponent Q to create an
%   ideal sigmoidal mask by raising each of the time-frequency powers to Q.
%   With Q=1 (default) the mask is the IRM. As Q->Inf the IRM will tend