GUI设计,读取矩阵中数据并进行三维绘图。
Show older comments
% --- 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('航迹')

提示这样的错误,像求助一下改怎么修改。
Accepted Answer
More Answers (0)
Categories
Find more on App 构建 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!