extall / fomcon-matlab

FOMCON toolbox for MATLAB
MIT License
32 stars 14 forks source link

`fotf` object initialized incorrectly if input arguments `a`, `na`, `b`, and `nb` passed as column vectors rather than row vectors #18

Open extall opened 1 year ago

extall commented 1 year ago

Simple test that results in an error:

G = fotf([1;2], [0.5; 1], [4;5], [1;0])
bode(G);

One needs to be careful here, because the first line will actually execute successfully and display the fotf object, but running bode to plot its frequency characteristics will fail in the second line.

The fix is simple, convert all input argument vectors into row vectors and/or perform additional checks of input arguments.

The solution will be introduced in the next bugfix release.