MATLAB: How to get faster results from matlab

i/oMATLAB

for j = 1:length(fnames)
[pathstr,name,ext] = fileparts(fnames(j).name);
if (strcmpi(ext,'.txt'))
scene = strcat('C:\Users\KimJS\Desktop\surf\',name,'.txt')
scene_txt = dlmread(scene);
boxPairs = matchFeatures(box_txt,scene_txt);
part of my matlab code, i want more faster result. how can i get that.
more faster i/o

Best Answer

First you profile to determine whether the slow part is the dlmread or the match_features.
Do you have the parallel computing toolbox?