A bit of background: I have a few versions of Matlab on my computer (2012a and 2014a). I recently started having problems with commands that used to work, an example being fzero. When I run it, I get the error "Struct contents reference from a non-struct array object." Strangely, this happens both on my primary version (2014a) and backup version (2012a). I also installed 2016a to test it and it's also giving the same error.
>> X = fzero(@(x) sin(3*x),2)Struct contents reference from a non-struct array object.Error in fzero (line 167) error(message(errStruct.identifier));
Does anyone have any idea what's going on or how to fix this?
Best Answer