Filter löschen
Filter löschen

how to change a line in text file?

2 Ansichten (letzte 30 Tage)
Eltigani hamad
Eltigani hamad am 5 Jun. 2014
Kommentiert: Cedric am 5 Jun. 2014
Hi i have the following text file:
  1. *
  2. * STEP: Step-1
  3. *
  4. * *Step, name=Step-1
  5. * *Static
  6. * 1., 1., 1e-05, 1.
  7. *
  8. * BOUNDARY CONDITIONS
  9. *
  10. * Name: BC-1 Type: Symmetry/Antisymmetry/Encastre
  11. * *Boundary
  12. * Set-1, ENCASTRE
  13. *
  14. * LOADS
  15. *
  16. * Name: Load-1 Type: Pressure
  17. * *Dsload
  18. * Surf-1, P, 20
i would like to change no (20) on last line with matlab. how i can do that
  1 Kommentar
Cedric
Cedric am 5 Jun. 2014
Is it always the last line? Is the text before this 20 always 'Surf-1, P,'?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

dpb
dpb am 5 Jun. 2014

Weitere Antworten (0)

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by