Matlab 2016b hex2dec issues

3 ビュー (過去 30 日間)
Andrew
Andrew 2017 年 6 月 12 日
コメント済み: Andrew 2017 年 6 月 13 日
I recently switched from 2014b to 2016b. One of my scripts uses hex2dec. It works fine with 2014b, but not 2016b. I double checked it is related to the version change, but I don't understand where or how. This is the error I am getting: Does anyone have any ideas?
Error using hex2dec>hex2decImpl (line 58)
Input to hex2dec should have just 0-9, a-f, or A-F.
Error in hex2dec (line 23)
d = hex2decImpl(char(h));
  9 件のコメント
Walter Roberson
Walter Roberson 2017 年 6 月 13 日
編集済み: Walter Roberson 2017 年 6 月 13 日
Is it possible that you are using R2017a rather than R2016b ? There was a change to R2017a for importdata to default to returning text items as the new (as of R2016b) string() class, and that can lead to the kind of difficulty you are seeing. I seldom use importdata...
Andrew
Andrew 2017 年 6 月 13 日
Here is my version:
>> ver
MATLAB Version: 9.1.0.441655 (R2016b)

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeDigital Input and Output についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by