A Code Monkey's Blog

Octave: save a figure to a file

I'm playing around Octave recently. As many other open-source projects, the documentation is not complete, or more precisely speaking, not friendly to new user. When I want to save a picture to the disk, the documentation tells me to use print(), but I still need to try several times ...

XPM and deprecated conversion error

How to get rid of this warning: deprecated conversion from string constant to `char*'

Change "char" to "const char" in the XPM file.