Community Profile

photo

Nur Syafawani Mat Syet


Active since 2018

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


i just one pushbutton for calculate but i cant display. help me :'(
% --- Executes on button press in Calculate. function Calculate_Callback(hObject, eventdata, handles) % hObject handle to C...

5 years ago | 1 answer | 0

1

answer

Question


Help me to fix it because the error said Attempted to access xnew(2); index out of bounds because numel(xnew)=1. Error in jacobi (line 22) err = norm(xnew(i)-x(i),Inf)/norm(xnew(i),Inf);
a = [1, 0, -1; -1/2, 1, -1/4;1, -1/2, 1]; b = [0.2; -1.425; 2]; n = length(b); x = zeros(n,1); xnew = zeros(n,1); ...

5 years ago | 1 answer | 0

1

answer