Nur Syafawani Mat Syet
自 2018 起处于活动状态
Followers: 0 Following: 0
Feeds
提问
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...
6 years 前 | 1 个回答 | 0
1
个回答提问
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); ...
6 years 前 | 1 个回答 | 0