reading some part of string from cell array in MATLAB -


i want copy part of string cell array , put cell array in matlab.

for example, 1 struct

{>eco:b0002 thra; bifunctional aspartokinase/homoserine dehydrogenase 1 (ec:1.1.1.3 2.7.2.4); k12524 bifunctional aspartokinase / homoserine dehydrogenase 1 [ec:2.7.2.4 1.1.1.3] (n) atgcgagtgttgaa...},  

i want paste

'>eco:b0002 thra; bifunctional aspartokinase/homoserine dehydrogenase 1 (ec:1.1.1.3 2.7.2.4); k12524 bifunctional aspartokinase / homoserine dehydrogenase 1 [ec:2.7.2.4 1.1.1.3] (n)'  

part of referring string cell array.

in each cell begins '>' , ends '(n)', see 1 of them in example.

i can't find helpful function start with.

>> str = '>eco:b0002 thra; (n) atgcgagtgttgaa...'; >> result = regexp(str, '\>.+\(n\)', 'match'); >> result = result{1} result = >eco:b0002 thra; (n) 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -