Why different size on 2 files?

I have 2 files, which has been created with same fil. But the size are very different. Why this different?

回答 (2 件)

madhan ravi
madhan ravi 2018 年 10 月 23 日
編集済み: madhan ravi 2018 年 10 月 23 日

0 投票

10 件のコメント

Rasmus Chrisander
Rasmus Chrisander 2018 年 10 月 23 日
Thx. I'll look in to it.
Rasmus Chrisander
Rasmus Chrisander 2018 年 10 月 24 日
Is it possible to see what data type the variables are saved as and how many bites they are?
madhan ravi
madhan ravi 2018 年 10 月 24 日
編集済み: madhan ravi 2018 年 10 月 24 日
yes of course
type in command window
whos yourvariable %variable which you want to see the data type
madhan ravi
madhan ravi 2018 年 10 月 24 日
for example:
>> a=1
a =
1
>> whos a
Name Size Bytes Class Attributes
a 1x1 8 double
>>
Rasmus Chrisander
Rasmus Chrisander 2018 年 10 月 24 日
Thx. If I do this for the different variables in the two files. It seems like the variables have the same size. ?
if true
Dat18 size bytes size of 1 variable class
dato 17615 140920 8 double File size: 14,8 mb
files 17615 3376212 191,6668748 cell
mappe 17615 2254720 128 cell
tog 17615 140920 8 double
Dat2017
dato 24454 195632 8 double File size: 206 kb
files 24454 4688868 191,7423734 cell
mappe 24454 3130112 128 cell
tog 24454 195632 8 double
% code
end
madhan ravi
madhan ravi 2018 年 10 月 24 日
no they are not the same size
madhan ravi
madhan ravi 2018 年 10 月 24 日
but the bytes are different
Rasmus Chrisander
Rasmus Chrisander 2018 年 10 月 24 日
If I look at the bytes Dat2017 should be bigger than Dat18. But it isn't. So why is Dat18 so much bigger?
madhan ravi
madhan ravi 2018 年 10 月 24 日
To be frank I agree your point , did you read that link completely?
Rasmus Chrisander
Rasmus Chrisander 2018 年 10 月 24 日
I'm working on it. :)

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

Rasmus Chrisander
Rasmus Chrisander 2018 年 10 月 23 日

0 投票

I used the function save.
: save(strcat(datainfo,year,'.mat'), 'fil', 'tog', 'dato', 'mappe')

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

製品

リリース

R2014b

タグ

質問済み:

2018 年 10 月 23 日

コメント済み:

2018 年 10 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by