フィルターのクリア

Trouble using datcomToFixedWing function

4 ビュー (過去 30 日間)
Aryan Ghadge
Aryan Ghadge 2022 年 11 月 16 日
回答済み: Brian 2022 年 11 月 18 日
Code:
datcomStruct = datcomimport('datcom.out');
aircraft = Aero.FixedWing();
aircraft.Properties.Name = "MyPlane";
[aircraft,state] = datcomToFixedWing(aircraft,datcomStruct{1},'StateMode','Exhaustive')
Error:
Error using Aero.FixedWing/datcomToFixedWing
Error setting property 'ReferenceLength' of class 'Aero.FixedWing'. Value must be a scalar.
Error in static_stability (line 28)
[aircraft,state] = datcomToFixedWing(aircraft,datcomStruct{1},'StateMode','Exhaustive')
Why am I getting this error? I have attached the relevant datcom output file. What can I do to resolve this error?

回答 (1 件)

Brian
Brian 2022 年 11 月 18 日
It appears that your Digital DATCOM file is missing some fields. The missing field referenced in the error is "cbar", the longitudinal reference length. See the link below for a list of the required fields.

カテゴリ

Help Center および File ExchangeFixed-Wing Aircraft Creation with Objects についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by