I'm simualting a project where one of the matlab functions states the following error:
"'y' is inferred as a variable-size matrix, but its size is specified as inherited or fixed. Verify 'y' is defined in terms of non-tunable parameters, or select the 'Variable Size' check box and specify the upper bounds in the Size box."
I have seen similar posts to this however couldn't find infomation on why my output is variable size,
The code for this aspect of the project is quite small and the following:
function y = sector(Valpha, Vbeta)
if Vbeta>=0 & abs(Valpha) < abs(Vbeta/sqrt(3));
if Vbeta>=0 & abs(Valpha) > abs(Vbeta/sqrt(3)) & Valpha >= 0;
if Vbeta < 0 & abs(Valpha) < abs(Vbeta/sqrt(3));
if Vbeta < 0 & abs(Valpha) > abs(Vbeta/sqrt(3)) & Valpha >= 0;
Does anyone happen to know why the data is variable size and how I coulf stop it from being such.