| MATLAB Central > MATLAB Newsreader > Finding the position of a specific string in a cel... |
|
|
|
Subject: Finding the position of a specific string in a cell array of strings From: Samuel Chapman Date: 29 Oct, 2010 19:57:03 Message: 1 of 8 |
|
I have been trying to figure this out today and it is really bugging me: |
|
Subject: Finding the position of a specific string in a cell array of strings From: Jan Simon Date: 29 Oct, 2010 20:17:05 Message: 2 of 8 |
|
Dear Samuel, |
|
Subject: Finding the position of a specific string in a cell array of strings From: Sean Date: 29 Oct, 2010 20:18:03 Message: 3 of 8 |
|
"Samuel Chapman" <samdchap@indiana.edu> wrote in message <iaf8uf$f0b$1@fred.mathworks.com>... |
|
Subject: Finding the position of a specific string in a cell array of strings From: james bejon Date: 29 Oct, 2010 20:19:03 Message: 4 of 8 |
|
strcmp('123', A) |
|
Subject: Finding the position of a specific string in a cell array of strings From: Samuel Chapman Date: 29 Oct, 2010 20:23:04 Message: 5 of 8 |
|
Here is some information about what I am ultimately trying to do: |
|
Subject: Finding the position of a specific string in a cell array of strings From: Samuel Chapman Date: 29 Oct, 2010 20:28:04 Message: 6 of 8 |
|
Jan, James, strcmp is what I needed. Thank you very much! |
|
Subject: Finding the position of a specific string in a cell array of strings From: Sean Date: 29 Oct, 2010 20:36:03 Message: 7 of 8 |
|
"Samuel Chapman" <samdchap@indiana.edu> wrote in message <iafaf8$opo$1@fred.mathworks.com>... |
|
Subject: Finding the position of a specific string in a cell array of strings From: james bejon Date: 29 Oct, 2010 20:38:03 Message: 8 of 8 |
|
A = {'A' 'X' 3; 'A' 'Y' 4.5; 'A' 'Z' 0.1; 'B' 'X' 10; 'B' 'Y' 20; 'B' 'Z' 0.1}; |
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 |
| cell array | Samuel Chapman | 29 Oct, 2010 15:59:05 |
| string search | Samuel Chapman | 29 Oct, 2010 15:59:05 |
