GUI设计,读取矩阵中数据并进行三维绘图。
显示 更早的评论
% --- Executes on button press in track.
function track_Callback(hObject, eventdata, handles)
% hObject handle to track (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
[name path] = uigetfile('*.*');
fname = [path name];
data = importdata(fname);
set(handles.trackimage,'data',data);
guidata(gcf,handles);
axes(handles.trackimage)
data=handles.data
% plot3(data(1,:),data(2,:),data(3,:))
plot3(data(1,:),data(2,:),data(3,:))
title('航迹')

提示这样的错误,像求助一下改怎么修改。
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 App 构建 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!