how to change a particular line of code in a m file
hi ,
i need to change a single line of code in my file with another line. can anyone suggest a way to do it
i need to change a single line of code in my file with another line. can anyone suggest a way to do it
0
Comments
sed -e 's/old line/new line/'
hi
i am trying to change a line in the .m file which is read by matlab
If not, why don't you just go into the file and change the line you want to modify?
he shouldn't be doing it this way, though. It should be a parameter/argument to the .py script, or he should rewrite the .m file so it's a function rather than a script.
Agreed.