Graph All Columns of Matrix

Average rating
(1 vote)

// 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

@hrodstein Thanks very much

@hrodstein Thanks very much - works well.

Back to top