Changeset 24199


Ignore:
Timestamp:
10/03/19 08:40:15 (5 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixed transpose, not an extraneous quote

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/solve/WriteData.m

    r24197 r24199  
    135135        fwrite(fid,s(2),'int');
    136136        if s(1)*s(2),
    137                 fwrite(fid,data,'double'); %get to the "c" convention, hence the transpose
     137                fwrite(fid,data','double'); %get to the "c" convention, hence the transpose
    138138        end
    139139        % }}}
     
    158158        fwrite(fid,s(2),'int');
    159159        if s(1)*s(2),
    160                 fwrite(fid,data,'double'); %get to the "c" convention, hence the transpose
     160                fwrite(fid,data','double'); %get to the "c" convention, hence the transpose
    161161        end
    162162        % }}}
     
    188188        fwrite(fid,s(2),'int');
    189189        if s(1)*s(2),
    190                 fwrite(fid,data,'double'); %get to the "c" convention, hence the transpose
     190                fwrite(fid,data','double'); %get to the "c" convention, hence the transpose
    191191        end
    192192        % }}}
     
    224224                %Convert data to uint8 and write it
    225225                A=uint8((A-offset)/range*255);
    226                 fwrite(fid,A,'uint8'); %get to the "c" convention, hence the transpose
     226                fwrite(fid,A','uint8'); %get to the "c" convention, hence the transpose
    227227
    228228                %Write last row as double (time)
     
    263263                fwrite(fid,s(1),'int');
    264264                fwrite(fid,s(2),'int');
    265                 fwrite(fid,matrix,'double');
     265                fwrite(fid,matrix','double');
    266266        end
    267267        % }}}
Note: See TracChangeset for help on using the changeset viewer.