I have a Linear Parameter-Varying (LPV) Model represented in its state-space form through a mesh matrix. This LPV model has "m" inputs, "p" outputs, and "n" states. It has been gridded across a parameter space that is "s1" x "s2". Then, the mesh size is [s1 s2] while the input, output, and state offsets are [m 1 s1 s2] [p 1 s1 s2] and [n 1 s1 s2], respectively. However, attempting to simulate the model fails with the following error message:
The value of state offset must be a real and finite vector of length or an array of size [x 1 s1*s2 1].
It seems like the 2D array might have been interpreted as a 1D array, and "x" seems unrelated to "m", "p", "n", "s1", and "s2". Therefore, how can I appropriately define and verify the meshing in LPV systems?