#pragma rtGlobals=3 // Use modern global access method and strict wave access. //this programme has the general purpose of loading a wave from a data file manually selected from //the user and it returns the wave Function load_wave_from_file() Newpath/O/Q/M="choose a file containing a N-Dim matrix" PathToWave Loadwave/O/M/P=PathToWave Wave load_wave, TraceContainerSignal Duplicate/O TraceContainerSignal, load_wave print "The wave dimension is "+num2str(Wavedims(load_wave)) killwaves TraceContainerSignal return load_wave end