gusucode.com > 声音的处理有:LPC,FFT,共振峰,频谱源码程序 > siganlandsystemusingMatlab/SSUM/ssumroot.m

    function ssumlocation = ssumroot
    % Find path to SSUM
    switch computer
	    case {'GLNX86','MAC'}
			% What if multiple locations???
			% Maybe assume it is the present dir?
			ssumlocation = [pwd '/'];
			%[val,SSUMlocations] = unix('locate SSUM.m');
			%[t,SSUMlocations] = strtok(SSUMlocations,'/');
			%endloc = findstr(SSUMlocations,'SSUM.m');
			%SSUMlocation = SSUMlocations(1:endloc(1)-1);
        case {'PCWIN'}
            ssumlocation = [pwd '/'];
    end