"Make" with NaNs instead of zeros
EllisRob
I am using the following line:
make/o/N=(dimsize(wave1,0),dimsize(wave2,0)) New_matrix
to make a matrix with the the number of rows being equal to the length of wave1, and the number of columns being equal to the length of wave2. I get a big matrix with the correct dimensions, and a bunch of zeros. Is there any way I can make this same dimensioned matrix using the "make" command, but have the matrix be filled with NaNs instead? The only way I know how to fix my problem is a manual solution with for loops, which is too cumbersome for this particular piece of code.
Thanks! Sincerely,
Ellis
March 13, 2013 at 05:34 pm - Permalink
New_matrix = nan
That is, Igor will handle a wide range of wave assignments so you don't have to mess with loops. Enter
displayhelptopic "Waveform arithmetic and assignment"
in the command line for more information.
March 13, 2013 at 07:37 pm - Permalink
Ellis
March 14, 2013 at 06:50 am - Permalink