simscape.op.targetTable
Description
Examples
Input Arguments
Output Arguments
Tips
To export your operating point target table to a spreadsheet, use this script.
sheetName = 'opSpreadSheet.xls'; targetTable = simscape.op.targetTable(op); exportedTable = targetTable(:, ["BlockPath", "Variable", "Priority"]); exportedTable(:,"Value") = cellfun(@value, targetTable{:,"TargetValue"}, 'UniformOutput', false); exportedTable(:,"Unit") = cellfun(@(v) string(unit(v)), targetTable{:,"TargetValue"}, 'UniformOutput', false); finalTable = exportedTable(:, ["BlockPath", "Variable", "Value", "Unit", "Priority"]); writetable(finalTable, sheetName);
Version History
Introduced in R2025a