visioner code changing string

1 回表示 (過去 30 日間)
yuval ohayon
yuval ohayon 2018 年 8 月 11 日
コメント済み: Walter Roberson 2018 年 8 月 11 日
hi,can anyone help me with a visiner cose.its a code that change the string with 2 letters up (lets say 'abcd') to 'cdef' in old fashion for loop like in c++ thank for your help.

回答 (1 件)

Star Strider
Star Strider 2018 年 8 月 11 日
Letters in MATLAB (and most other languages) are represented by numeric values. Since this is homework, we only give hints, so the one I leave you with is the char (link) function.
  1 件のコメント
Walter Roberson
Walter Roberson 2018 年 8 月 11 日
hint:
'abcd'+2

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

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by