Audio data acquisition on Matlab from Arduino through serial port

Hello guys!,
I´m trying to analyze in real time the audio file recorded using a microphone connected to the Arduino board, I´ve got a SD card reader to store the file recorded( due to the low RAM memory of the Arduino one) but I would like to analyze it directly on matlab in real time. Is there any way to do it? Currently
I´m only able to read analog data using that code

function Matlab_Arduino(number)
close all;
clc;
y=zeros(1,1000);
%initialization of serial port
delete(instrfind({‘Port’},{‘COM4’}));
serial_port=serial(‘COM4’,‘BaudRate’,9600,‘DataBits’,8,‘StopBits’,1);
%serial_port.Baudrate=9600;
warning(‘off’, ‘MATLAB:serial:fscan:unsuccessfulRead’);
%opening serial port
fopen(serial_port);
%initialling counter
counter=1;
figure(‘Name’,‘Serial Com’)
title(‘Serial com’);
xlabel(‘Number’);
ylabel(‘voltage (V)’);
grid on;
hold on;
while counter<=number
ylim([0 5.1]);
xlim([counter-20 counter+5]);
value_mic=fscanf(serial_port,’%d’)’;
value_mic
y(counter)=((value_mic(1))*3.3)/1024;
plot(counter,y(counter),‘X-r’);
drawnow
counter=counter+1;
end
fclose(serial_port);
delete(serial_port);
% figure;
% t=1:40000;
% plot(t,y(counter));
% fs=8000;
% audiowrite(‘mic.wav’,y(counter),fs)
clear all
end

On the other side when I try to get the audio file I can only record it using the microphone of my mac!

%-------acquisition settings-----------------------------------------------
%delete(instrfind({‘Port’},{‘COM4’}));
%port=serial(‘COM4’);
a=arduino(‘COM4’,‘BaudRate’,9600,‘DataBits’,8,‘StopBits’,1);
%idn=fscanf(port);
%port.BaudRate=9600;
warning(‘off’, ‘MATLAB:serial:fscan:unsuccessfulRead’);
fopen(s);
fs=8000;
%nbits=8;
ch=1;
rec=audiorecorder(fs,nbits,ch);%inizio la registrazione
get(rec)
disp ‘RECORDING
time=0:500;

Please help!
thank you
bye

Matlab: Matlab R2013a
Arduino:Arduino one
Microphone:electret condenser microphone: CMA-4544PF-W
Macbook: Macbook Late 2007