回答 (1 件)

Gaurav Garg
Gaurav Garg 2021 年 2 月 24 日

0 投票

Hi Akriti,
You can make use of fread function (documentation link).

4 件のコメント

Akriti Raj
Akriti Raj 2021 年 2 月 24 日
Hey! Gaurav, thanks for your help. I tried using fread but I am getting some error saying dimension problem. My issue is I have an array in .bin file and another in .text file and I have to use repelem on them. Can you suggest how can I know what is the format of data stored in .bin file ?
Gaurav Garg
Gaurav Garg 2021 年 2 月 24 日
Hi Akriti,
Did you try using arguments given in the doc page, along with fread function?
Walter Roberson
Walter Roberson 2021 年 2 月 24 日
It can be difficult to figure out what the storage format is in a binary file unless you have some information about the expected data range and distribution.
Which program produced the file?
Akriti Raj
Akriti Raj 2021 年 2 月 25 日
@gaurav yes, I tried different arguments.
@walter These are random numbers generated from Quantum random number generator.

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

カテゴリ

ヘルプ センター および File ExchangeGet Started with MATLAB についてさらに検索

質問済み:

2021 年 2 月 22 日

コメント済み:

2021 年 2 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by