PDA

View Full Version : how to copy from one file to another file in matlab


matlab4t
19 Feb 2008, 3:44am
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

shwaip
19 Feb 2008, 8:29am
type 'help copyfile' into matlab

also, why do you want to do this?

matlab4t
19 Feb 2008, 5:53pm
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


type 'help copyfile' into matlab

also, why do you want to do this?

matlab4t
20 Feb 2008, 12:33am
Thank you , that command "copyfile " really helped. appreciate it.