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: rev_shift_row.m
    path of file: ./repos/Encryption-and-Image-Steganography-using-DWT
    
    the code of the file until where you have to start completion: function output_data = rev_shift_row(input_data)
%NICHOLAS LAU
%000377939
%LAST EDITED: AUG. 21, 2016
%SHIFTS THE ROWS OF THE DATA TO THE RIGHT BY M-1, WHERE M IS THE CURRENT
%M-POSITION IN THE MATRIX
input_data
sz = size(input_data);
%Where input_data is a square matrix
jump = 0;
new_jump = 0;
output_data = input_data;

    
function output_data = rev_shift_row(input_data)
%NICHOLAS LAU
%000377939
%LAST EDITED: AUG. 21, 2016
%SHIFTS THE ROWS OF THE DATA TO THE RIGHT BY M-1, WHERE M IS THE CURRENT
%M-POSITION IN THE MATRIX
input_data
sz = size(input_data);
%Where input_data is a square matrix
jump = 0;
new_jump = 0;
output_data = input_data;

for(ii=1:sz(1))
    for(jj=1:sz(2))
        if (jj+jump > sz(2))
            new_jump = jj+jump-sz(2);
%             tmp = (ii,new_jump);
            output_data(ii,new_jump) = input_data(ii,jj);
        else
            output_data(ii,jj+jump) = input_data(ii,jj);
%         tmp = input_data(ii,jj-jump);
        end