How can I split a dat file by matlab?

2 ビュー (過去 30 日間)
Arial22
Arial22 2018 年 4 月 12 日
コメント済み: Walter Roberson 2018 年 4 月 12 日
dear guys,I meet a problem.I need to split a .dat file into several equal part. after this,I will do some operation and combine these parts again. I have no idea how to handle this quetion.if you have any suggestion,please share with me. Thank you anyway!
  1 件のコメント
Walter Roberson
Walter Roberson 2018 年 4 月 12 日
Is it a binary .dat file? If so are all of the entries the same length? If they are, then what is that length?
For example you could end up in trouble if you accidentally split a double (64 bits) part way through because you divided the number of bytes exactly in 3 .

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

回答 (1 件)

KSSV
KSSV 2018 年 4 月 12 日
Read about reshape. This will split your data into your desired parts.....

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by