How to omit the type line in a regexp result

This is my Matlab command for match those string.
As we see,there is a type mark line between * ans=* and my result line,which will take up my extra line.How to omit it?

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 8 Jul. 2017

0 Stimmen

Some possible ways:
  1. regexp('dcda4adcqq', '(.{2,}).?(??@fliplr($1))', 'match', 'once');
  2. regexp('dcda4adcqq', '(.{2,}).?(??@fliplr($1))', 'match'); disp(ans);
  3. result = regexp('dcda4adcqq', '(.{2,}).?(??@fliplr($1))', 'match'); result{1}
  4. celldisp(regexp('dcda4adcqq', '(.{2,}).?(??@fliplr($1))', 'match'))

Weitere Antworten (0)

Kategorien

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!