フィルターのクリア

Can I use 'fopen' to open a file with VAX machine format in MATLAB 2015a?

5 ビュー (過去 30 日間)
Jennifer Davies
Jennifer Davies 2016 年 11 月 14 日
コメント済み: Jan 2018 年 1 月 18 日
I’m trying to run an old script, am I’m getting an error on the following line of code:
fopen(FullFileName,'r','d'); % DEC VAX D floating point and VAX ordering
I think it’s the 'd' input that’s causing a problem, and the error is that this is an invalid machine format.
Google tells me that 'd' once was an option for machine format, but it is not one of the options listed in the help document for fopen in MATLAB 2015a (where the options are 'n' or 'native', 'b' or 'ieee-be', 'l' or 'ieee-le', 's' or 'ieee-be.l64', and 'a' or 'ieee-le.l64').
So could this be a version issue? Does anyone know how I can open files with VAX D floating point and VAX ordering in Matlab 2015a?
Thanks very much
  3 件のコメント
Yuying Liu
Yuying Liu 2017 年 11 月 21 日
I've tried this one, but didn't work on my case, do you guys find any other solutions?
Jan
Jan 2018 年 1 月 18 日
Please explain "didn't work" with any details.

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

採用された回答

Jan
Jan 2016 年 11 月 14 日
Matlab has dropped the VAX formats in R2008b, unfortuantely. It has vanished without a message in the change notes.
  2 件のコメント
Yuying Liu
Yuying Liu 2017 年 11 月 21 日
Then what should we do?
Jan
Jan 2018 年 1 月 18 日
You have to convert the files or use an old version of Matlab.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLow-Level File I/O についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by