
Loadwave /B flag does not work correctly with /L flag for matrices

rwashenfelder
Loadwave/J/M/B="N=MyName;"
// Correctly names the matrix as MyName
Loadwave/J/M/B="N=MyName;"/L={0,0,0,0,0}
// Correctly names the matrix as MyName
Loadwave/J/M/B="N=MyName;"/L={0,1,0,0,0}
// Correctly names the matrix as MyName
Loadwave/J/M/B="N=MyName;"/L={0,1,0,2,10}
// Incorrectly names the matrix as wave0
Using /B, you must provide specifications for each column, even for the columns that you are skipping. In the last example, you specify a name for column 0 in the file. Column 0 in the file is not being loaded so that name is not used.
This is explained in the Igor7 help for LoadWave as follows:
So in your last example, use:
It also works without ",N='_skip_'":
January 10, 2018 at 11:21 am - Permalink
January 10, 2018 at 12:48 pm - Permalink