How to get a part of a string

2 ビュー (過去 30 日間)
Alan Sente
Alan Sente 2014 年 1 月 22 日
回答済み: Amit 2014 年 1 月 22 日
Hi, I would like to get a part of a word for example, x = 'abchf' y = [x(2):x(4)] What I want is : y = bch But what i get is : y = bcdefgh
Matlab gives me all the alphabetical letter between 'b' and 'h', What I want when I write [x(2): x(4)] is [x(2) x(3) x(4) (for different variables)
Thanks for any help Alan

採用された回答

Amit
Amit 2014 年 1 月 22 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeString Parsing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by