Wednesday, November 21, 2007
Saturday, November 10, 2007
Things to learn in the next 1 year
Open CV on linux platform
Awareness of the basic libraries available in C/C++
Mex interface
Running batch process/ parallelizing your algorithm to run on clusters
Awareness of the basic libraries available in C/C++
Mex interface
Running batch process/ parallelizing your algorithm to run on clusters
Some new stuff learnt from MATLAB
1. How to run a peice of code on an array of data and find out the ones for which the function gives a runtime error
try and catch block
try
output(i)=function(intput(i))
catch ME1
% ME1.identifier
fid=fopen("errorfile.txt",'w');
fprintf(fid,'%s\n',ME1.message);
for j=1:length(ME1.stack)
fprintf(fid,'filepath = %s\n',ME1.stack(j).file);
fprintf(fid,'function name = %s\n',ME1.stack(j).name);
fprintf(fid,'line no = %d\n',ME1.stack(j).line);
end
fclose(fid);
end
2. Moving and copying files around in matlab
copyfile('src','dst');
movefile('src','dst');
try and catch block
try
catch ME1
% ME1.identifier
fid=fopen("errorfile.txt",'w');
fprintf(fid,'%s\n',ME1.message);
for j=1:length(ME1.stack)
fprintf(fid,'filepath = %s\n',ME1.stack(j).file);
fprintf(fid,'function name = %s\n',ME1.stack(j).name);
fprintf(fid,'line no = %d\n',ME1.stack(j).line);
end
fclose(fid);
end
2. Moving and copying files around in matlab
copyfile('src','dst');
movefile('src','dst');
Subscribe to:
Posts (Atom)