SVM to input arduino uno

Hello people.
I have trouble to connect SVM and arduino, when I am trying code Maltab

" s = serial('COM3');
fopen(s);
fwrite(s,'w')"

it's worked, but If I put this code as decision on SVM, It can't run

please help me, to fix it :cry: