function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of matlab
% handles structure with handles and user data (see GUIDATA)
s=serial('com4','BaudRate',9600,'Timeout',1)
fopen(s)
fwrite(s,1)
我想让bottom1按下与单片机通信,但怎么一直错误呢,求指点
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>