Thursday, May 12, 2016

Error Matlab: index exceeds matrix dimensions (label)

Error when labeling (legend) in Matlab.
R2014b, Windows
Index exceeds matrix dimensions.
Error legend('fir2 30pt','fir2 80pt');
Solution
delete previous label, clear title.

ref: https://www.mathworks.com/matlabcentral/answers/29677-index-exceeds-matrix-dimensions

Sunday, May 8, 2016

Install MATLAB di Ubuntu 16.04 Xenial

Jika sudah bentuk .iso bisa langsung di mount menggunakan disk mount
Kalau pake web installer lama pisun euy, bisa 8 jam untuk download (ya download toolboxes yang lumayan gede)
Open path in terminal
sudo ./install
 Jalankan instruksi seperti biasa untuk aktivasi

Install matlab-support
sudo apt-get install matlab-support

Beberapa setting:
 konfirmasi folder instalasi, biasanya /usr/local/MATLAB/{ver}
 restricted user? {leave blank aja}
 rename conflict gcc? no

check ver
MATLAB Version: 8.4.0.150421 (R2014b)
MATLAB License Number: xxxxxx
Operating System: Linux 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64
Java Version: Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode


after installation error happened. Jadi ga bisa dijalanin

solusinya bisa jalanin java yang openjdk rather java build in ubuntu
MATLAB_JAVA=/usr/lib/jvm/java-8-openjdk-amd64/jre/   matlab
solusi lainnya rename path_to _matlab/sys/os/glnxa64, rename libstdc++.so.6.