The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Help using textscan or sscanf
Replies: 21   Last Post: Jan 23, 2013 4:02 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
james bejon

Posts: 221
Registered: 3/13/10
Re: Help using textscan or sscanf
Posted: Jan 20, 2013 10:58 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

% Apologies if this has already been solved elsewhere--haven't had time to read through the thread, but...
S = {'154045001', '926665001', '615017', '1976936151', '801700', '4506702001'};
regexprep(S, '^.*?([0-9]{1,9})$', '4421$1')

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.