필터 지우기
필터 지우기

how to change a line in text file?

조회 수: 2 (최근 30일)
Eltigani hamad
Eltigani hamad 2014년 6월 5일
댓글: Cedric 2014년 6월 5일
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
Cedric
Cedric 2014년 6월 5일
Is it always the last line? Is the text before this 20 always 'Surf-1, P,'?

댓글을 달려면 로그인하십시오.

채택된 답변

dpb
dpb 2014년 6월 5일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by