MATLAB/Wikiquiz writer (MATLAB)/removeheaders.m

< MATLAB < Wikiquiz writer (MATLAB)
function [ newquizarray] = removeheaders( quizarray )
%REMOVEHEADERS removes headers from quiz files
%   quizarray is a cell matrix
sizebefore=size(quizarray,1);
count=0;
shift=0;
while count<sizebefore
    count=count+1
    if ~isempty(quizarray{count,2})
        newquizarray(count-shift,:)=quizarray(count,:);
    else
        shift = shift+1;
end


end

This article is issued from Wikiversity - version of the Saturday, November 15, 2014. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.