MATLAB: Run time of a code MATLAB How can i find out run time of a code written in matlab. Best Answer You can use:tic...your codetocand you'll obtain something like:Elapsed time is 0.04 seconds. Related SolutionsMATLAB: How to efficiently down-sample data that is non-uniformly spaced [Y, M, D, H, MN] = datevec(data(:,1));[c,c,c] = unique([Y, M, D, H, MN],'rows');out = accumarray(c,data(:,2),[],@mean); MATLAB: Gets imellipse slower and slower in a loop Because the axes is getting "full" - not quite sure how else to describe it. Put the command "cla" before the call to imellipse and you'll see the times stay short no matter how many times you call it. Related QuestionGpu computation is slow sometimesWhere can I see how much time it takes to simulate a .m fileFor statement – print on exactly 1 secondTime elapsed by a portion of the codeGa does not use all the available workers
Best Answer