Delimiter must be a string (textscan R2010b)

3 visualizzazioni (ultimi 30 giorni)
The following code works on R2013a
str = textscan('is it a version issue, or it is not.','%s','Delimiter',{' ',',','.'});
but it does not on R2010b, where I receive the following error:
Delimiter must be a string.
Any solution to this? Can you confirm it is a version issue?

Risposta accettata

Jan
Jan il 15 Ott 2013
What about:
str = textscan('is it a version issue, or it is not.', '%s', 'Delimiter', ' ,.');
  2 Commenti
joeDiHare
joeDiHare il 18 Ott 2013
Yes, this works, Thanks. I wonder why the same code does not work on different MATLAB versions.
Walter Roberson
Walter Roberson il 18 Ott 2013
When something works on a newer version but not an older, the first suspicion should be that a routine was enhanced between the two versions.

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by