change format of phone numbers in matlab 2013Ra?

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

回答 (1 件)

Niklas Nylén
Niklas Nylén 2014 年 6 月 3 日

0 投票

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

カテゴリ

ヘルプ センター および File ExchangeMATLAB Mobile についてさらに検索

タグ

質問済み:

2014 年 6 月 3 日

回答済み:

2014 年 6 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by