Extracting a matrix from within a matrix
Jonpope
I am attempting to extract a square area (containing a peak) from a large 2D wave as a secondary wave.
Thus far I have simply been using the total intensity within the square, which is defined by a number of pixels around a selected point e.g. PeakPosP+15,PeakPosP-15, PeakPosQ+15, PeakPosQ-15 with (PeakPosP, PeakPosQ) being selected either manually or using the V_maxrowloc, V_maxcolloc variables from the ImageStats command.
However I am now looking to carry out curve fitting on the area contained within the square and therefore need to keep the point values intact.
Is there any command with which I could duplicate a selected portion of the matrix? Or would it be a case of using the Make command allocating values for all the points afterward?
As always your help is greatly appreciated.
Regards
Jon
Try
Duplicate/R=[rows range][cols range] srcWave,destWave
A.G.
WaveMetrics, Inc.
May 14, 2012 at 09:24 am - Permalink
I think you might even get away with just using wave subranges, e.g.
CurveFit <options> MyWave[0,10][0,10]
, without having to make a temporary copy.May 14, 2012 at 11:50 am - Permalink
May 14, 2012 at 01:00 pm - Permalink
May 14, 2012 at 01:01 pm - Permalink
I'm not sure what you mean- FuncFit and CurveFit take mostly the same options, including wave subranges.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
May 14, 2012 at 03:44 pm - Permalink