「 Malab&Simulink 」X0 returned by MATLAB S-function ‘NLSEF‘ in ‘ADRC_NN/S-Function1‘ must be a vector

I. Introduction

Xiaobai encountered this problem when doing simulation:

X0 returned by MATLAB S-function ‘NLSEF‘ in ‘ADRC_NN/S-Function1‘ must be a vector of length 3

2. Reasons for the error

State variable initialization setting error: length.

Three. Solution

X0 is the initialization phase, and the two red lines must be consistent.

 

Pro-test is effective.

Guess you like

Origin blog.csdn.net/Robot_Starscream/article/details/107051714