How to run for PhysioNet/Computing in Cardiology Challenge on Ubuntu 15.10 with Matlab R2015b

I create this post for Biomedical Signal Analysis course.
First, we need download the sample file:

and the validation file, that includes wav files:

Now, run
unzip -e
cd sample2016
chmod +x

Building with 'gcc'.
Warning: You are using gcc version '5.2.1'. The version of gcc is not supported. The version currently supported with MEX is '4.7.x'. For a list of currently supported compilers see:

We need downgrade our gcc version to 4.7.x
We can use another version without uninstall the last version installed on our system. For this, do as folllows:

sudo apt-get install gcc-4.7
sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-4.7 /usr/bin/gcc

Now, execute again:

Building with 'gcc'.
/usr/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status

To fix it, you need install stdc++ libraries and create one with the name who is expected:

sudo apt-get install libstdc++5
sudo ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/

Now we can execute
The next step y run, but challenge.m (include on it) use a function deprecated on R2015x.
To solve this, you need to replace :

[PCG, Fs1, nbits1] = wavread([recordName '.wav']);  % load data
[PCG, Fs1] = audioread([recordName '.wav']);  % load data

Enjoy it!


Popular posts from this blog

from: can't read /var/mail/ in Python scripts

How to fix Android when developer options are not available for this user

Fix "Set scan parameters failed: Input/output error" on Ubuntu 16.04