How to give an array of steering wheel and longitudianl velocity to vehicle body 3DOF single track model

3 ビュー (過去 30 日間)
I have steering wheel and longitudinal velocity values stored in an array with size (458332). And i am trying to give these values to the vehicle 3DOF single track model in simulink. However, I have encountered with the error:
Inferred size ('[5]') for data 'yOut' does not match specified size ('[3]').
Simulink cannot determine sizes and/or types of the outputs for block 'VehicleModel/Vehicle Body 3DOF Single Track/vehicle model' due to errors in the block body, or limitations of the underlying analysis. The errors might be inaccurate. Fix the indicated errors, or explicitly specify sizes and/or types for all block outputs
I am unable to understand what is the cause as i have checked the dimensions and the data types. I am providing the data sets and the simulink model in the attachment. Any guidance would be really helpful.

採用された回答

Fangjun Jiang
Fangjun Jiang 2024 年 2 月 21 日
Use a "From Workspace" block, specify the data as [Dataset.tout, double(Dataset.Steeringangle)]

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by