Rank: 3060 based on 13 downloads (last 30 days) and 5 files submitted
photo

David Cumin

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by David View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
27 Jul 2011 Longest Common Subsequence Gives the longest common substring between two stings. Author: David Cumin similarity string lcs... 10 5
  • 4.0
4.0 | 2 ratings
14 Jul 2009 MakeWhole Takes a triangular matrix and fills in the other half. Author: David Cumin matrix, data 0 0
05 Jul 2009 Bland Altman Plot Plots a Bland Altman plot. You can control what is and what is not plotted through 'flag'. Author: David Cumin statistics bland altm... 2 0
26 Jun 2009 fitMatlabCellML Allows for the parameter estimation of selected constants from a CellML file exported from COR. Author: David Cumin cellml, parameter estimation 1 0
25 Jun 2009 RunMatlabCellML Runs CellML files as exported from COR in matlab. Author: David Cumin cellml, ode model 0 0
Comments and Ratings by David
Updated File Comments Rating
29 Jun 2009 Longest Common Subsequence Gives the longest common substring between two stings. Author: David Cumin

Bruno,
Thanks for your comments. The LCS('fbce','abcde'); gives the right answer. The code is designed to find the longest common substring of two given inputs. In this example, both 'fbce' and 'abcde' contain 'bce':
fbce -> '-bce'
'abcde' -> '-bc-e'
Hope that makes sense.

The technique is common to pattern matching techniques. I'm not sure of the limit to the function. I guess it depends on memory.

Cheers,
David

Comments and Ratings on David's Files View all
Updated File Comment by Comments Rating
03 Jul 2009 Longest Common Subsequence Gives the longest common substring between two stings. Author: David Cumin Luong, Bruno
30 Jun 2009 Longest Common Subsequence Gives the longest common substring between two stings. Author: David Cumin Luong, Bruno

Thank you, I see now. I suggest to update the help and describe more clearly what function does. It is also good if you could add few words about memory requirement/complexity and algorithm.

29 Jun 2009 Longest Common Subsequence Gives the longest common substring between two stings. Author: David Cumin Cumin, David

Bruno,
Thanks for your comments. The LCS('fbce','abcde'); gives the right answer. The code is designed to find the longest common substring of two given inputs. In this example, both 'fbce' and 'abcde' contain 'bce':
fbce -> '-bce'
'abcde' -> '-bc-e'
Hope that makes sense.

The technique is common to pattern matching techniques. I'm not sure of the limit to the function. I guess it depends on memory.

Cheers,
David

29 Jun 2009 Longest Common Subsequence Gives the longest common substring between two stings. Author: David Cumin Luong, Bruno

I still do not function understand what the function does:

X = [ 8 8 9 3 7 1 2 4 5 1 ]
Y = [ 7 6 6 10 2 7 9 4 1 1]

[D, dist, aLongestString] = LCS(X,Y)
D = 0.6000
dist = 4
aLongestString = [ 7 2 4 1]

% Furthermore what is the limit of the function?

>> X=ceil(10*rand(1,1e4));
>> Y=ceil(10*rand(1,1e4));
>> [D, dist, aLongestString] = LCS(X,Y)
??? Out of memory. Type HELP MEMORY for your options.

Error in ==> LCS at 20
b = zeros(n+1,m+1);
  

29 Jun 2009 Longest Common Subsequence Gives the longest common substring between two stings. Author: David Cumin Fig, Matt

Something is still wrong.

[D,G,S] = LCS('fbce','abcde');S
S =
bce

Top Tags Applied by David
cellml, data, matrix, ode model, parameter estimation
Files Tagged by David View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
27 Jul 2011 Longest Common Subsequence Gives the longest common substring between two stings. Author: David Cumin similarity string lcs... 10 5
  • 4.0
4.0 | 2 ratings
14 Jul 2009 MakeWhole Takes a triangular matrix and fills in the other half. Author: David Cumin matrix, data 0 0
05 Jul 2009 Bland Altman Plot Plots a Bland Altman plot. You can control what is and what is not plotted through 'flag'. Author: David Cumin statistics bland altm... 2 0
26 Jun 2009 fitMatlabCellML Allows for the parameter estimation of selected constants from a CellML file exported from COR. Author: David Cumin cellml, parameter estimation 1 0
25 Jun 2009 RunMatlabCellML Runs CellML files as exported from COR in matlab. Author: David Cumin cellml, ode model 0 0

Contact us at files@mathworks.com