Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i get my makefile to run matlab scripts

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?

like image 385
FusionFox Avatar asked Dec 08 '25 21:12

FusionFox


1 Answers

You can run in your Makefile:

matlab -r "myfunction(myargs)"
like image 84
Oli Avatar answered Dec 10 '25 15:12

Oli



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!