My Codes for Distance to Uncontrollability
dunc_trisect.m (Trisection version of Gu's algorithm)
dunc_fast.m (Faster version using BFGS/Gu Hybrid)
Both need:
gu_test.m
rq.m
sigmin.m
isnaninf.m
In addition, dunc_fast.m needs
BFGS and line search codes
Also available:
dunc_demo.m
More recent, more efficient codes are also available:
Codes written by Emre Mengi