how to copy from one file to another file in matlab

edited February 2008 in Science & Tech
hi guys,

i am trying to copy the text from one file to another file by using matlab. the file is a script file (.py) file. can somebody give me any hint as to how to start with . i was thinking of using fopen and getl command, but its getting kind of messy. so can anyone suggest me a better way of doing it.

thank you

matlab4t

Comments

  • shwaipshwaip bluffin' with my muffin Icrontian
    edited February 2008
    type 'help copyfile' into matlab

    also, why do you want to do this?
  • edited February 2008
    okay , let us assume that i have a file named 1.py . i have to change few lines in the file 1.py and have to run it . i have to change the node numbers in 1.py. the node numbers i have them from matlab. so i am trying to copy the 1.py to 2.py and in 2.py input the node numbers and make it run.

    do let me know if there is any other alternate way to do it.

    thanks for your reply

    shwaip wrote:
    type 'help copyfile' into matlab

    also, why do you want to do this?
  • edited February 2008
    Thank you , that command "copyfile " really helped. appreciate it.
Sign In or Register to comment.