Why i am getting this error message
Show older comments
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clc
s =str2double(get(handles.edit1,'string'));
in =str2double(get(handles.edit2,'string'));
en =str2double(get(handles.edit3,'string'));
t=s:in:en;
y=eval(get(handles.edit4,'string')); %line 181
figure(1)
plot(t,y)
title('Actual graph')
x=0;
y1 = zeros(1,(length(t)-1));
for i=1:(length(t)-1)
x=x+(y(1,i+1)*in);
y1(1,i)=x;
end
t1=s:in:(en-in);
figure(2)
plot(t1,y1)
title('After Intregation')

1 Comment
Christopher Wallace
on 25 Jul 2018
What is on line 181?
Please reformat the code in the question. It isn't possible to see where the lines end.
Accepted Answer
More Answers (1)
Robiul Ferdous
on 26 Jul 2018
0 votes
1 Comment
OCDER
on 26 Jul 2018
The Answer is reserved for answer to your original question. If this is a new error and new question, post a new question. Otherwise, no one will try to respond here as an Answer was already accepted.
Post full error message in you new question post. Read this:
Categories
Find more on Variables 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!