When adding several systems to an array of subsystems, I lose the Name property.
lpf = ss(tf(1, [1/wc, 1], 'Name', 'LPF'));
hpf = ss(tf([1/wc, 0], [1/wc, 1], 'Name', 'HPF'));
The LTI systems lpf and hpf have the Name property set, but the array of LTI Systems sys doesn't have it anymore.
I pass the array to a custom function to create the Bode plots of both filters at once and I'd like to add the legend using the Name of the systems to identify the curves.
Trying to repair the omission by using the set command doesn't work
set(sys(:,:,1,1), 'Name', 'LPF');
This gives the error message
Error using DynamicSystem/set (line 7)
The first input argument of the "set" command must be a named variable.
Any ideas what may be causing this/what I am doing wrong?