| MATLAB Central > MATLAB Newsreader > Matching Character Phrases... |
|
|
|
Subject: Matching Character Phrases... From: Jack Branning Date: 21 Feb, 2008 20:32:02 Message: 1 of 17 |
|
Hi |
|
Subject: Matching Character Phrases... From: jay vaughan Date: 21 Feb, 2008 21:05:05 Message: 2 of 17 |
|
I recently learned a little about regexp, and you might try |
|
Subject: Matching Character Phrases... From: Jack Branning Date: 21 Feb, 2008 22:24:04 Message: 3 of 17 |
|
"jay vaughan" <jvaughan5.nospam@gmail.com> wrote in message |
|
Subject: Matching Character Phrases... From: jay vaughan Date: 22 Feb, 2008 02:47:07 Message: 4 of 17 |
|
Hmm, is the length of the repeated strings always known? In |
|
Subject: Matching Character Phrases... From: jay vaughan Date: 22 Feb, 2008 03:18:02 Message: 5 of 17 |
|
Here is a brute force solution. It runs in 10 seconds or so |
|
Subject: Matching Character Phrases... From: jay vaughan Date: 22 Feb, 2008 05:13:02 Message: 6 of 17 |
|
Driving home, I thought about it again and realized that my |
|
On 2008-02-21 15:32:02 -0500, "Jack Branning" <jbr.nospam@nospam.com> said: |
|
On 2008-02-22 09:52:44 -0500, Arthur G <gorramfreak+news@gmail.com> said: |
|
Subject: Matching Character Phrases... From: Jack Branning Date: 22 Feb, 2008 15:16:34 Message: 9 of 17 |
|
Hi, thank you so much for your help, I think this solution is very close to what |
|
On 2008-02-22 10:16:34 -0500, "Jack Branning" <jbr.nospam@nospam.com> said: |
|
Subject: Matching Character Phrases... From: Jack Branning Date: 22 Feb, 2008 16:16:36 Message: 11 of 17 |
|
> Once you have locationStruct and distanceStruct, there are lots of ways to |
|
"Jack Branning": |
|
On 2008-02-22 11:16:36 -0500, "Jack Branning" <jbr.nospam@nospam.com> said: |
|
Subject: Matching Character Phrases... From: Jason Breslau Date: 23 Feb, 2008 01:46:27 Message: 14 of 17 |
|
This seems like a good time to use dynamic regular expressions. |
|
On Feb 22, 8:46=A0pm, "Jason Breslau" <tendiamo...@mathworks.com> wrote: |
|
Subject: Matching Character Phrases... From: Jason Breslau Date: 23 Feb, 2008 02:24:03 Message: 16 of 17 |
|
True. Subsequently, your solution is significantly more |
|
Subject: Matching Character Phrases... From: Jack Branning Date: 23 Feb, 2008 12:37:04 Message: 17 of 17 |
|
Thank you both your your responses to this problem! |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| code | us | 22 Feb, 2008 11:54:58 |
| strfind | us | 22 Feb, 2008 11:54:58 |
| fieldnames | us | 22 Feb, 2008 11:54:58 |
| isfield | us | 22 Feb, 2008 11:54:58 |
| struct2cell | us | 22 Feb, 2008 11:54:58 |
Contact us at files@mathworks.com
