本文总结一些在Linux 环境(ubuntu15.04 and redhat 6.5)下使用MATLAB常见的一些问题以及解决方案.
使用Matlab 在没有安装excel的linux,Mac以及win 系统环境上写数据到excel.
xlwrite: Generate XLS(X) files without Excel on Mac/Linux/Win.
解决方法来自:
http://www.mathworks.com/matlabcentral/fileexchange/38591-xlwrite--generate-xls-x--files-without-excel-on-mac-linux-win
具体例子如下:
% Small demonstration on how to use XLWRITE
% Initialisation of POI Libs
% Add Java POI Libs to matlab javapath
% Data Generation for XLSX
% Define an xls name
% Generate some data
% Generate XLSX file
I can’t open Matlab 2015a after I upgrade Ubuntu 14.10 to 15.04.
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
This package is responsible for application menu support for Java swing applications, and seems to be the cause for the segfault. Removing it worked for me:
If you just want to remove the message you can just edit your $HOME/.bashrc (if using bash) or $HOME/.profile and unset the variable with: unset JAVA_TOOL_OPTIONS
MATLAB parallel error
Java exception occurred:
java.net.UnknownHostException: **: nodename nor servname provided, or not known
at java.net.InetAddress.getLocalHost(InetAddress.java:1473)
When you type !hostname in the command window In Matlab, it returns a string. In /etc/hosts (OS X/Linux), you should add: 127.0.0.1 str (str being whatever string !hostname returned). Is this what you tried? I had the same issue and it worked for me. (in my case I added 127.0.0.1 server because my hostname is server) – Franck Dernoncourt Feb 2 at 4:17
matlab read CMYK image error
|
|
Vlfeat Error in vl_demo_covdet (line 15)
Invalid MEX-file ‘/home/gaobb/mywork/toolbox/vlfeat-0.9.19/toolbox/mex/mexa64/vl_covdet.mexa64’:
/home/gaobb/mywork/toolbox/vlfeat-0.9.19/toolbox/mex/mexa64/libvl.so: undefined symbol: GOMP_parallel
Error in vl_demo_covdet (line 15)
frames = vl_covdet(imgs, ‘verbose’) ;
Solution
open the /vlfeat/makefile and edit:
Makefile DISABLE_OPENMP=yes
Vlfeat Error libvl.so: cannot open shared object file: No such file or directory
Invalid MEX-file ‘/home/gaobb/. mcrCache8.3/main_C0/home/gaobb/mywork/
toolbox/vlfeat- 0.9.20/toolbox/mex/mexa64/vl_fisher.mexa64’: libvl.so: cannot open shared object file: No such file or directory
Solution
Open the /etc/ld.so.conf as sudo and add a new line with the library directory. In this case, we add /home/gaobb/mywork/toolbox/vlfeat-0.9.20/toolbox/mex/mexa64
Rerun ldconfig to rebuild the cache:
sudo ldconfig
Check if the shared library cache now includes the shared libraries from the new directory:
ldconfig -p
本作品采用知识共享署名 2.5 中国大陆许可协议进行许可,欢迎转载,但转载请注明来自 Sunshine 并保持转载后文章内容的完整。本人保留所有版权相关权利。