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

提示这样的错误,像求助一下改怎么修改。
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur App 构建 dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!