[問題] axes發生問題已回收
在這個程式碼裡,我讀入wav檔,然後把它畫成specgram
以下是相關function的code
function pushbutton1_Callback(hObject, eventdata, handles)
[FileName,PathName] = uigetfile({'*.wav'},'Load Wav File');
[x,Fs] = wavread([PathName '/' FileName]);
handles.x = x ;
handles.Fs = Fs;
global a
if mod(a,2) ==0
axes(handles.axes1);
handles.xabove=handles.x;
handles.Fsabove=handles.Fs;
else
axes(handles.axes2);
handles.xbelow=handles.x;
handles.Fsbelow=handles.Fs;
end
接下來就是畫specgram了,這部份沒錯,所以沒貼上來
結果出現了以下的錯誤訊息
??? Reference to non-existent field 'axes1'.
Error in ==> my_filter3>pushbutton1_Callback at 90
axes(handles.axes1);
要怎麼改才可以呢?
先謝謝大家
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.229.59.64
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):