Skip to content

Commit

Permalink
Update Fig02_06.m
Browse files Browse the repository at this point in the history
Fix for the summation of "s" (s= s+...)
  • Loading branch information
LechGrzelak authored Jun 23, 2022
1 parent b23b842 commit 7fb1394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MatlabCodes/Chapter 02/Fig02_06.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

s = 0;
for i=1:length(X)-1
s = (X(i+1)-X(i)-mu*dt)^2;
s = s + (X(i+1)-X(i)-mu*dt)^2;
end
sigma = sqrt(s/(m*dt))

Expand Down

0 comments on commit 7fb1394

Please sign in to comment.