vartest2 is expecting x and y to be vectors of numbers. It needs to be, actually, because vartest2 compares the variance of the groups. Do you have available the sample data you can use instead?
and use a contrast H that compares the two desired coefficients (e.g. [0 1 -1] compares the second and third regression coefficients in your linear model).
Best Answer