Y********x 发帖数: 322 | 1 I used the follows statements to save some variables:
save mydata.txt I1 I2 I3 D1 D2 I4 I5 I6 -ascii -append;
I1,I2,I3,I4,I5,I6 are integer values and D1,D2 are double types.
In one machine, the variables are properly saved in this order; But when I r
un the program in another machine, the order of the data saved are as follow
s:
D1 D2 I1 I2 I3 I4 I5 I6.
FT!!! What the hell is the problem? I could not believe
my eyes! Anybody has clue on this super bizarre problem? | j**u 发帖数: 6059 | 2 有点奇怪,你减少存的变量看看。
r
follow
【在 Y********x 的大作中提到】 : I used the follows statements to save some variables: : save mydata.txt I1 I2 I3 D1 D2 I4 I5 I6 -ascii -append; : I1,I2,I3,I4,I5,I6 are integer values and D1,D2 are double types. : In one machine, the variables are properly saved in this order; But when I r : un the program in another machine, the order of the data saved are as follow : s: : D1 D2 I1 I2 I3 I4 I5 I6. : FT!!! What the hell is the problem? I could not believe : my eyes! Anybody has clue on this super bizarre problem?
| p*****e 发帖数: 310 | 3 could you post a script for testing your case?
r
follow
【在 Y********x 的大作中提到】 : I used the follows statements to save some variables: : save mydata.txt I1 I2 I3 D1 D2 I4 I5 I6 -ascii -append; : I1,I2,I3,I4,I5,I6 are integer values and D1,D2 are double types. : In one machine, the variables are properly saved in this order; But when I r : un the program in another machine, the order of the data saved are as follow : s: : D1 D2 I1 I2 I3 I4 I5 I6. : FT!!! What the hell is the problem? I could not believe : my eyes! Anybody has clue on this super bizarre problem?
| Y********x 发帖数: 322 | 4 It is a very large program.
The problem was incurred by different matlab versions, I guess. I will try t
o figure it out using some simple numerical
studies.
【在 p*****e 的大作中提到】 : could you post a script for testing your case? : : r : follow
| Y********x 发帖数: 322 | 5 I know why now.
In Matlab 7 (released in 2004 or so), the variables are saved
alphabitically according to the variable name. While in the
most recent Matlab, they are saved in the order you specified
in the save statement.
【在 j**u 的大作中提到】 : 有点奇怪,你减少存的变量看看。 : : r : follow
| j**u 发帖数: 6059 | 6
好奇怪呀,原来还有这么一说。
【在 Y********x 的大作中提到】 : I know why now. : In Matlab 7 (released in 2004 or so), the variables are saved : alphabitically according to the variable name. While in the : most recent Matlab, they are saved in the order you specified : in the save statement.
|
|