In some rare cases, the resample functionality of bode_tuyplot (and possibly bode2) can crash, depending on the frequency range chosen in bodeOpt.XLim:
Maximum variable size allowed by the program is exceeded.
Error in linspace (line 28)
y = d1 + (d2./n1).*(0:n1) - (d1./n1).*(0:n1);
Error in logspace (line 25)
y = 10 .^ linspace(d1, d2, n);
Error in bode_tuyplot (line 115)
freq_RS = logspace(a,b,n);
In some rare cases, the
resample
functionality ofbode_tuyplot
(and possiblybode2
) can crash, depending on the frequency range chosen inbodeOpt.XLim
: