varindex
Map problem variables to solver-based variable index
Description
returns the linear indices of problem variables as a structure or an integer vector. If you
convert idx = varindex(prob)prob to a problem structure by using prob2struct,
idx gives the variable indices in the resulting problem structure that
correspond to the variables in prob.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2019a