#27 about save_it and load_it error

release_3.6.x
closed
None
3
2012-09-15
2002-12-24
Anonymous
No

I have found error in save_it and load_it, may be it is
error. I test the two function in matlab.

in matlab, pattern is a 18700 vector.
using the following code:
save_it('pattern.it','pattern');
load_it('pattern.it');
You can find the pattern is changed a 8700
1 vector.

however, if pattern is 8700*1 vector.
the save_it and load_it function is OK.

Discussion

  • Logged In: YES
    user_id=326034

    This is actually NOT a bug. IT++ only support 1-dimensional
    vectors and n1 and 1n is therefore the same. Saving a row-
    vector in matlab will result in a vector that should be
    interpreted as a column vector in it++ (we don't have row-
    vectors). Importing the it++ file back into matlab will thus give
    a column vector just as reported.

    /Tony