Code covered by the BSD License  

Highlights from
Statistical Learning Toolbox

from Statistical Learning Toolbox by Dahua Lin
Functions for statistical learning, pattern recognition and computer vision, covering many topics.

Description of slisabspath
Home > sltoolbox > fileio > slisabspath.m

slisabspath

PURPOSE ^

SLISABSPATH Judges whether the path string is a absolute path

SYNOPSIS ^

function b = slisabspath(pstr)

DESCRIPTION ^

SLISABSPATH Judges whether the path string is a absolute path

 $ Syntax $
   - b = slisabspath(pstr)

 $ Arguments $
   - pstr:     the path string
   - b:        a bool variable indicating whether it is a full path

 $ History $
   - Created by Dahua Lin, on Aug 13, 2006

CROSS-REFERENCE INFORMATION ^

This function calls:
This function is called by:
  • edl_readexpdefs EDL_READEXPDEFS Reads in an experiment definition from XML file

SOURCE CODE ^

0001 function b = slisabspath(pstr)
0002 %SLISABSPATH Judges whether the path string is a absolute path
0003 %
0004 % $ Syntax $
0005 %   - b = slisabspath(pstr)
0006 %
0007 % $ Arguments $
0008 %   - pstr:     the path string
0009 %   - b:        a bool variable indicating whether it is a full path
0010 %
0011 % $ History $
0012 %   - Created by Dahua Lin, on Aug 13, 2006
0013 %
0014 
0015 b = (length(pstr) >= 2 && ...
0016         (pstr(2) == ':' || pstr(1) == '\' || pstr(1) == '/'));

Generated on Wed 20-Sep-2006 12:43:11 by m2html © 2003

Contact us at files@mathworks.com