I have an image showing a set of vertical straight fringes. I can get the x and y coordinates along with the relative intensities of each pixel. I am able to plot these to show a 3d contour map of the relative intensities of each fringe. What I need is to be able to scan across the image row by row, picking out the peak intensities of each fringe. Then take this data to plot linear graphs of these peak values obtained for each row in the image, finally extracting the equation of each line to show that they are parallel. This would be possible by making a macro in excel but there is far too much data for it to cope with. Also, i'm a beginner in origin so go easy on me..
...And just to make sure I understand your objective, you want to find the largest value in each matrix row and record that value (and probably the column number where it occurs)?
...If I stated your problem correctly and you have Origin 6.1 or later then there is a simple GUI solution.
1. Transpose the matrix. (Matrix->Transpose) 2. Convert to worksheet. (Edit->Convert to Matrix->Direct) 3. Select all worksheet columns. (Click in the upper left corner.) 4. Right click on worksheet and select Statistics on Columns.
This will create another worksheet with one row for each column in the previous worksheet. Maximum values will be in the Max column and corresponding indices will be in the IMax column.
Right, your instructions worked well (but only for an image containing a single fringe). Would it be possible to use the same technique, for an image of 10 fringes? Perhaps seperating the transposed image into 10 regions and finding 10 maximums? .. or would I have to do them each seperately?
There is no simple GUI solution of which I am aware so LabTalk or Origin C programming will be necessary. OriginC is much better at handling matrices and if you're comfortable with C programming I suggest you look into that first.