필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Read Patran and Rewrite .txt file

조회 수: 1 (최근 30일)
Thuan
Thuan 2017년 5월 25일
댓글: Thuan 2017년 5월 25일
Hey guys, I'm new to Matlab, and hoping I can get some some help. I'm trying to read in a text file and write it to the format I want. fileread('file') will give me the following data
MSC.Patran PDT 2015 - Analysis Code: MSC.Nastran
Load Case: AA565323 17600 Beams and Structural Deflection, A1:Static Subcase
Result Displacements, Translational - Layer (NON-LAYERED)
Entity: Node Vector
1356297 2 0.0521214521 0.0005944170 0.0016546078 0.0125977102
4197358 89 0.0523557459 0.1244454656 -0.164303258 -0.542853886
3679865 104 0.0540524244 -0.015693102 -0.004209815 0.0009847531
I want it to write this data to the following format.
"AA565323"
"Node 1356297", "Node 4197358", "Node 3679865"
"<0.0005944170, 0.0016546078, 0.0125977102>", @
"<0.1244454656, -0.164303258, -0.542853886>", @
"<-0.015693102, -0.004209815, 0.0009847531>", @
  댓글 수: 2
Thuan
Thuan 2017년 5월 25일
I pretty much the same as the link you posted. Rather than edit the question I rather just post a new question to get more attention. The different here is that I have a heading. This cause the loan('') function not to work.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by