Saving a picture in Matlab is just a piece of cake~we could use both relative and absolute path to point the directory where we want to put the pictures to be saved.
However, when I compiled my matlab files today into Java .jar file via Matlab JA builder and tried to run it in Java, it said that 'can not save files to dir'.
Those matlab files would save some pictures to local directory after some calculation, and the path names I used in it is absolute path. I've tested it for many many times under Matlab environment and it worked well, but the problem popped up when it comes to the Java environment.
I was about to give up when I finally tried to use absolute path instead of relative one. Thanks god it works! I don't know the trick in it but anyway I could continue my work.
No comments:
Post a Comment