how to reduce the length of a string

32 ビュー (過去 30 日間)
HARITHA Nambiar
HARITHA Nambiar 2018 年 3 月 12 日
回答済み: KALYAN ACHARJYA 2018 年 3 月 12 日
MATlab code for reducing the length of a string
  1 件のコメント
Birdman
Birdman 2018 年 3 月 12 日
What do you mean by reducing? What have you tried so far?

サインインしてコメントする。

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 3 月 12 日
You can delete the characters from strings-
%Code: delete the last five character from strings, you can choose it another way also.
S='InputString.txt'
S=S(1:end-5)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by