フィルターのクリア

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 件のコメント
Stephen23
Stephen23 2017 年 5 月 25 日
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