change format of phone numbers in matlab 2013Ra?

change format of phone numbers in matlab 2013Ra? from this 923332425932 to +92-333-2425932.

Antworten (1)

Niklas Nylén
Niklas Nylén am 3 Jun. 2014

0 Stimmen

A very straight forward way would be:
pIn = '923332425932';
pOut = ['+' p1(1:2) '-' p(3:5) '-' p(6:end)]

Kategorien

Mehr zu MATLAB Mobile finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 3 Jun. 2014

Beantwortet:

am 3 Jun. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by