Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Read Patran and Rewrite .txt file
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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>", @
Respuestas (0)
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!