he wants to be able to change it automagically based on some calculated value.
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.
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.
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.