Community Profile

photo

Nur Syafawani Mat Syet


Attivo dal 2018

Followers: 0   Following: 0

Statistiche

Feeds

Visto da

Domanda


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...

oltre 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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); ...

oltre 5 anni fa | 1 risposta | 0

1

risposta