functionplotEigenvalues

Calculate eigenvalues of matrix A and plot root locus

Inputs

TypeNameDefaultDescription
Real[:,size(A, 1)]A[2, 1, 1; 1, 1, 1; 1, 2, 2]Square matrix
BooleanremovePrevioustrueTrue, if all previous plots should be deleted
Integer[4]position{5, 5, 600, 450}Window Position
Stringheading"Root locii"Heading of plot
BooleanuseLegendtrueUse legend
Stringlegend"Eigenvalues"Legend of plot
BooleangridfalseAdd grid
MarkerStylemarkerStyleMarkerStyle.CrossStyle of marker
Integer[3]markerColor{0, 0, 255}Color of marker

Outputs

TypeNameDefaultDescription
Real[size(A, 1),2]eigenvaluesEigenvalues of matrix A (Re: first column, Im: second column)