Optimcon.m
This is the function that updates the spin_system object with optimal control information. Syntax:
spin_system=optimcon(spin_system,control)
where control is a data structure containing information about optimal control settings. See the optimal control settings section of the online manual for information on preparing control structures.