Saving large matrix not exact

I saved a 60x300,000 matrix from MATLAB online into my MATLAB drive. But when I load the mat file from my local workstation, the entries in the matrix are not the same as the original ones. The values is exact for only one digit.

5 件のコメント

Jonas
Jonas 2023 年 2 月 8 日
編集済み: Jonas 2023 年 2 月 8 日
when you load the mat file in matlab online, are the values still 'correct'?
which format are the numbers? double?
also note that the first column is identical. Maybe you loaded the wrong file / did not refresh the data when runnning your code mutipe times?
Quang Huy Pham
Quang Huy Pham 2023 年 2 月 8 日
Yes. The numbers' format is double. When I load the mat file in matlab online, the values are still correct. But there is a limit of memory in matlab online, so I need to load the mat file into my pc.
KSSV
KSSV 2023 年 2 月 8 日
Read about format
Quang Huy Pham
Quang Huy Pham 2023 年 2 月 8 日
It worked now. I cleared all variables in my pc's matlab and reloaded again.
Jonas
Jonas 2023 年 2 月 8 日
編集済み: Jonas 2023 年 2 月 8 日
great.
sounds like you ran a script. Use functions instead, this way the variables are cleared each time before you run

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeWorkspace Variables and MAT Files についてさらに検索

質問済み:

2023 年 2 月 8 日

編集済み:

2023 年 2 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by