demxyuanli / matlabcontrol

Automatically exported from code.google.com/p/matlabcontrol
0 stars 0 forks source link

Matlab does not write to file when controlled from Java #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version of matlabcontrol are you using?
(Release versions: 4.1.0, 4.0.0, 3.1.0, 3.0.1, 3.0.0, or 2.0.0)
4.1.0

What version of MATLAB are you using?
R2011a

What operating system are you using?
Windows 7

Are you using matlabcontrol from inside MATLAB or outside MATLAB?
Outside Matlab (inside Java)

What steps will reproduce the problem?
1. Create Matlab script which writes something to file using print, save, or 
saveas.
2. Run Matlab script from Java.
3. Matlab script appears to execute in its entirety, but nothing is written to 
file.

What did you expect to happen? What happened instead?
I expected something to be written to file and to appear in my home Matlab 
directory. This is what happened when running the script from Matlab itself.

If there was a stack trace, please copy it here.

Please provide any additional information below.

Original issue reported on code.google.com by meliss...@gmail.com on 27 Mar 2014 at 7:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The following Matlab functions DO NOT work for writing files: 
print
save

The following Matlab functions DO work for writing files:
fwrite
imwrite

Original comment by meliss...@gmail.com on 29 Apr 2014 at 1:18