How to get the value (number) that is in a string?

2 ビュー (過去 30 日間)
Zineb EL MORCHID
Zineb EL MORCHID 2016 年 4 月 6 日
コメント済み: Zineb EL MORCHID 2016 年 4 月 6 日
To lighten my question ,for exemple let's take d='1'; I want to increment 1 it to get 2 as result. So I tried to convert it to double by using double(d)+1; I got 50. Obviously '1' is 49 in double , same thing I got by using int8 . which function should I use to get 2 as result?

採用された回答

Image Analyst
Image Analyst 2016 年 4 月 6 日
Like this:
doubleD = str2double(d);
  1 件のコメント
Zineb EL MORCHID
Zineb EL MORCHID 2016 年 4 月 6 日
Thank so much Savior .

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by