Skip to content

Commit

Permalink
Update nCorrToDavis.m
Browse files Browse the repository at this point in the history
- The header should contain the subset spacing
- There was an extra tab on the end of the lines
  • Loading branch information
rhysgt committed Apr 29, 2024
1 parent 0496217 commit bb80dbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/nCorrToDavis.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

%Make header string
header = ['#nCorr 1.2 2D-vector ', ...
int2str(subset_size), ...
int2str(subset_spacing), ...
' ', ...
int2str(y_len), ...
' ', ...
Expand All @@ -39,7 +39,7 @@
for y=1:y_len
waitbar(y/y_len, f, 'Exporting data to txt file...')
for x=1:x_len
fprintf(fileID,'%1.1f\t%1.1f\t%6.6f\t%6.6f\t\n', ...
fprintf(fileID,'%1.1f\t%1.1f\t%6.6f\t%6.6f\n', ...
[((x-1)*subset_spacing)+subset_spacing./2, ...
((y-1)*subset_spacing)+subset_spacing./2, ...
u(y,x), ...
Expand Down

0 comments on commit bb80dbf

Please sign in to comment.