Match Substring in Cell Array and Copy To New Array
Al momento, stai seguendo questa domanda
- Vedrai gli aggiornamenti nel tuofeed del contenuto seguito.
- Potresti ricevere delle e-mail a seconda delle tuepreferenze per le comunicazioni.
Si è verificato un errore
Impossibile completare l'azione a causa delle modifiche apportate alla pagina. Ricarica la pagina per vedere lo stato aggiornato.
0 voti
Condividi un link a questa domanda
- school of medecine university of CA in Los Angeles
- engineering programs in california
- University of CA in Los Angeles degrees
- University of CA in Irvine nursing online studies
- rankings of universities in california
- school of mathematics UCLA
- financial aid UCLA
- UCLA minorities financial aid
Risposta accettata
1 voto
Condividi un link a questa risposta
- "substring start" doesn't match "ucla_financial= [ financial aid UCLA UCLA minorities financial aid ]". The example suggests that you search strings, which contain the two words: financial and UCLA, not a substring
- The example "ucla_programs= [ school of medecine university of CA in Los Angeles school of mathematics UCLA ]" is not helpful. The word, programs, doesn't appear in the selected strings.
11 Commenti
Condividi un link a questo commento
Condividi un link a questo commento
Condividi un link a questo commento
- Is there away to filter out bogus strings, such as "university a" or "university s," more specifically filter out any strings which contain a single letter before or after the keyword? For example, the function shouldn't return "university a" nor "university s"
- Having the function search more than one word? Right now for 'university' and 'college' it only runs once for 'university' and exits.
- Store the output of the function as an array in the main script? "university_arr= search_sub(keywords, search_term)" doesn't work.
Condividi un link a questo commento
- all( ismember( cas1, cas2 ) ) in the function, search_sub, assumes that both arguments are cell array of strings. current_keyword{ii} is a string in the function, sub_search
- ismember is case sensitive
Più risposte (0)
Categorie
Scopri di più su MATLAB in Centro assistenza e File Exchange
Prodotti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.
Americhe
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
