source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/BlueCCal/MultiCamSelfCal/MartinecPajdla/utils/str_cut.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 322 bytes
Line 
1%str_cut Cut off last piece according to a delimeter from a string.
2%
3%   [ head, tail ] = str_cut(s, delim)
4
5function [ head, tail ] = str_cut(s, delim)
6
7if nargin < 2, delim = '/'; end
8
9idcs = findstr(s,delim);
10if isempty(idcs),
11  head = s;
12  tail = [];
13else
14  head = s(1:idcs(end));
15  tail = s(length(head)+1:end);
16end
Note: See TracBrowser for help on using the repository browser.