- Using an unsupported version of digital datcom.
- Having an incorrectly generated header in your output files.
- Encountering an error in the datcom case, which further prevents successful import.
DATCOM import error from DATCOM 1996
조회 수: 9 (최근 30일)
이전 댓글 표시
Hi,
I've generated a for006.dat from the 1996 version of DATCOM and am trying to use the matlab local function datcomimport to parse the states and coefficients into Matlab (R2022a). I've received the following error below:
//===========
Error using usafdatcom
Invalid input file encountered, >>for006.dat<<
Error in datcomimport (line 77)
[casenoout,casedata] = usafdatcom(files,usenan,verbose);
//===========
I've opened up the .dat file and there are no errors in it.
댓글 수: 0
답변 (1개)
Chetan
2023년 9월 28일
I understand that you are experiencing an issue with the datacom and encountering an error. Firstly, it's important to note that Missile DATCOM is not officially supported by the “datcomimport” function.
It seems that the header generated by Missile DATCOM 9/02 may have been improperly generated. This could be a bug in that specific version or simply the way it was generated at the time. To resolve this, you can try copying and pasting the expected header provided below and replacing it in your files. This should allow you to continue importing the data:
1 ***** THE USAF AUTOMATED MISSILE DATCOM * REV 07/07 *****
AERODYNAMIC METHODS FOR MISSILE CONFIGURATIONS
CONERR - INPUT ERROR CHECKING
ERROR CODES - N* DENOTES THE NUMBER OF OCCURENCES OF EACH ERROR
A - UNKNOWN VARIABLE NAME
B - MISSING EQUAL SIGN FOLLOWING VARIABLE NAME
C - NON-ARRAY VARIABLE HAS AN ARRAY ELEMENT DESIGNATION - (N)
D - NON-ARRAY VARIABLE HAS MULTIPLE VALUES ASSIGNED
E - ASSIGNED VALUES EXCEED ARRAY DIMENSION
F - SYNTAX ERROR
************************* INPUT DATA CARDS *************************
To summarize, the issue you are facing is likely due to:
I hope these suggestions help you resolve the issue you are facing
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!