function [ggg] = MoBi_scrittura(s) % write a '1' character on the serial port fprintf(s,'%s','1'); % get whatever arduino wrote on the serila port ggg = fgets(s);