Menu

#7 Cannot load .fdf files with non-square data matrix

open
nobody
None
5
2012-12-19
2012-11-28
Anonymous
No

Varian/Agilent .fdf files with non-square data matrices (e.g. 64x128) generate the following error in AnalyzeNNLS:
Subscripted assignment dimension mismatch.

Error in qT2_LoadVarian (line 116)
h.MultiEcho.data(:,:,1) = DataTmp;
This is because the data matrix is transposed in qT2_Varian_fdf.m, I assume to correct for the default Axial orientation on the Varian system which has read-out in the Y-direction. This causes the dimensions of DataTmp to be swapped with respect to the MultiEcho.data array for non-square data matrices.

A simple fix is to remove line 58 in qT2_Varian_fdf.m and simply use the un-transposed data. The default "Axial" images will appear to be rotated, but the program remains useable.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.