Trouble using datcomToFixedWing function
조회 수: 4 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!