Graph All Columns of Matrix
hrodstein
// GraphAllMatrixColumns(mat)
// Example:
// Make /N=(5,3) w2D = p + 10*q
// GraphAllMatrixColumns(w2D)
// For background information on subrange display execute:
// DisplayHelpTopic "Subrange Display"
Function GraphAllMatrixColumns(mat)
Wave mat
Display // Create graph
Variable numColumns = DimSize(mat,1)
Variable column
for(column=0; column<numColumns; column+=1)
AppendToGraph mat[][column]
endfor
End
// Example:
// Make /N=(5,3) w2D = p + 10*q
// GraphAllMatrixColumns(w2D)
// For background information on subrange display execute:
// DisplayHelpTopic "Subrange Display"
Function GraphAllMatrixColumns(mat)
Wave mat
Display // Create graph
Variable numColumns = DimSize(mat,1)
Variable column
for(column=0; column<numColumns; column+=1)
AppendToGraph mat[][column]
endfor
End
Forum
Support
Gallery
Igor Pro 9
Learn More
Igor XOP Toolkit
Learn More
Igor NIDAQ Tools MX
Learn More
July 2, 2012 at 03:46 am - Permalink