File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed
Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 114114 i = i + 1 ;
115115
116116 end
117-
118- % displays warning if maximum number of iterations reached
119- if (i == imax ) && warnings
120- warning(strcat(' The method failed after n=' ,num2str(imax ),...
121- ' iterations.' ));
122- end
123117
124118 % returns converged fixed point along with intermediate fixed point
125119 % estimates
158152 i = i + 1 ;
159153
160154 end
161-
162- % displays warning if maximum number of iterations reached
163- if (i == imax ) && warnings
164- warning(strcat(' The method failed after n=' ,num2str(imax ),...
165- ' iterations.' ));
166- end
167155
168156 % returns converged fixed point
169157 c = x_new ;
170158
171159 end
160+
161+ % ---------------------------------------------------------
162+ % Displays warning if maximum number of iterations reached.
163+ % ---------------------------------------------------------
164+
165+ if (i == imax ) && warnings
166+ warning(strcat(' The method failed after i=' ,num2str(imax ),...
167+ ' iterations.' ));
168+ end
172169
173170end
You can’t perform that action at this time.
0 commit comments