I created a coding rules option object and saved it into a .mat file. Whenever i have to perform polyspace verification i just load .mat file ans assign it to option object using following command.
prj.Configuration.CodingRulesCodeMetrics.MisraC3Subset = misraRules;
here 'prj' is polyspace project object and 'misraRules' is coding rules option object.
I am getting following object while loading .mat file.
SWITCH expression must be a scalar or a character vector.
Error in polyspace.option.Item/checkValue
Error in polyspace.option.Item/set.Value