I have a makefile that I use when writing latex documents, it automatically makes my .eps, .svg and .dia files into .pdf files. But i would like to automatically make it run a matlab script, that makes several .eps files that i can then make into .pdf files. It should however only run the matlab script if it has been changes since last time the .eps files where made as the makefile becomes very slow if it has to open and close matlab each time it runs. Is there any way to do this?
You can run in your Makefile:
matlab -r "myfunction(myargs)"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With