Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Read Patran and Rewrite .txt file

1 Ansicht (letzte 30 Tage)
Thuan
Thuan am 25 Mai 2017
Kommentiert: Thuan am 25 Mai 2017
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 Kommentare
Thuan
Thuan am 25 Mai 2017
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.

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by