Rank: 1261 based on 84 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
14 Jul 2009 MakeWhole Takes a triangular matrix and fills in the other half. Author: David Cumin data, matrix 7 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... 24 0
29 Jun 2009 Longest Common Substring Gives the longest common substring between two stings. Author: David Cumin similarity string lcs... 32 5
  • 4.0
4.0 | 2 ratings
26 Jun 2009 fitMatlabCellML Allows for the parameter estimation of selected constants from a CellML file exported from COR. Author: David Cumin parameter estimation, cellml 12 0
25 Jun 2009 RunMatlabCellML Runs CellML files as exported from COR in matlab. Author: David Cumin cellml ode model 9 0
Comments and Ratings by David
Updated File Comments Rating
29 Jun 2009 Longest Common Substring 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 Substring Gives the longest common substring between two stings. Author: David Cumin Luong, Bruno

30 Jun 2009 Longest Common Substring 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 Substring 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 Substring 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 Substring 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, cellml ode model, data, matrix, parameter estimation
Files Tagged by David View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
14 Jul 2009 MakeWhole Takes a triangular matrix and fills in the other half. Author: David Cumin data, matrix 7 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... 24 0
29 Jun 2009 Longest Common Substring Gives the longest common substring between two stings. Author: David Cumin similarity string lcs... 32 5
  • 4.0
4.0 | 2 ratings
26 Jun 2009 fitMatlabCellML Allows for the parameter estimation of selected constants from a CellML file exported from COR. Author: David Cumin parameter estimation, cellml 12 0
25 Jun 2009 RunMatlabCellML Runs CellML files as exported from COR in matlab. Author: David Cumin cellml ode model 9 0
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com