Home > p2plib > getlabs.m

getlabs

PURPOSE ^

get label list from dir pre

SYNOPSIS ^

function labs=getlabs(pre)

DESCRIPTION ^

 get label list from dir pre

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function labs=getlabs(pre)
0002 % get label list from dir pre
0003 dn=[pre '/p*.mat'];c=dir(dn);labs=[];
0004 for j=1:length(c)
0005     cn=c(j).name;lab=cn(2:length(cn)-4);lab=str2num(lab);
0006     labs=[labs; lab];
0007 end

Generated on Wed 15-Aug-2012 10:09:15 by m2html © 2005