Aus irgendeinem Grund bekomme ich den Fehler im Titel und ich bin nicht wirklich sicher, warum. Mein Code ist wohl eine Spalte von Daten gegen einen anderen zu zeichnen, wird es auf das Grundstück Codezeile, bevor Sie diese Fehler zu werfen:Fehler beim Plotten. Nicht genug Eingabeargumente
trent2.mat
C:\Users\TrentPC\Documents\MATLAB\
Error using plot
Not enough input arguments.
Error in BioRadioGUI>pushPlot_Callback (line 546)
plot(axisPoint(ch),savePoint(1:end-1,1),savePoint(1:end-1,ch+1));
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in BioRadioGUI (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)BioRadioGUI('pushPlot_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback
Mein Code:
% --- Executes on button press in pushPlot.
function pushPlot_Callback(hObject, eventdata, handles)
% hObject handle to pushPlot (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
[filename,pathname] = uigetfile('*.mat','Select the record file for feature extraction');
if filename == 0
msgbox('Invalid File Selection','Error','error');
else
clearvars savePoint
addpath(pathname)
load(filename)
disp(filename)
disp(pathname)
[rowPoint, columnPoint] = size(savePoint);
axisPoint = zeros(1,columnPoint-2);
figure
for ch = 1:columnPoint-2
axisPoint(ch) = subplot(columnPoint-2,1,ch);
end
hold on
for ch = 1:columnPoint-2
plot(axisPoint(ch),savePoint(1:end,1),savePoint(1:end,ch+1));
end
end
% Update handles structure
guidata(hObject, handles);
Mein Datenformat:
time, value1, value2, value3, value4, label
wie es aussieht: http://imgur.com/tmTOFig
Was die Figur li sieht ke: http://imgur.com/glONOkn