Skip to content

Commit

Permalink
updated warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaskis committed Nov 23, 2021
1 parent 8787c0f commit 679f692
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bisection_method.m
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@

% displays warning if maximum number of iterations reached
if (i == imax) && warnings
warning(strcat('The method failed after ',num2str(imax),...
warning(strcat('The method failed after n=',num2str(imax),...
' iterations.'));
end

Expand Down Expand Up @@ -161,7 +161,7 @@

% displays warning if maximum number of iterations reached
if (i == imax) && warnings
warning(strcat('The method failed after ',num2str(imax),...
warning(strcat('The method failed after n=',num2str(imax),...
' iterations.'));
end

Expand Down

0 comments on commit 679f692

Please sign in to comment.