forked from evodevosys/AroSpotFindingSuite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
collectDigits.m
executable file
·17 lines (16 loc) · 912 Bytes
/
collectDigits.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function digits=collectDigits(s,varargin)
% =============================================================
% Name: collectDigits.m %nameMod
% Version: 1.0 9 November 2011 %nameMod
% Author: Scott Rifkin, webpage: http://www.biology.ucsd.edu/labs/rifkin/
% Attribution: Rifkin SA., Identifying fluorescently labeled single molecules in image stacks using machine learning. Methods Mol Biol. 2011;772:329-48.
% License: Creative Commons Attribution-Share Alike 3.0 United States, http://creativecommons.org/licenses/by-sa/3.0/us/
% Website: http://www.biology.ucsd.edu/labs/rifkin/software/spotFindingSuite
% Email for comments, questions, bugs, requests: sarifkin at ucsd dot edu
% =============================================================
%This is a utility function to extract digits from a string
digits=regexp(s,'\d+','match');
if size(varargin,2)>0
digits=digits{varargin{1}};
end;
end