Skip to content

Commit

Permalink
Fix indentation in rand_unit_vector()
Browse files Browse the repository at this point in the history
  • Loading branch information
nunofachada authored Aug 11, 2023
1 parent 84f6bdc commit b33bb65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rand_unit_vector.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
% % ans = 1
function r = rand_unit_vector(num_dims)

r = rand(num_dims, 1) - 0.5;
r = rand(num_dims, 1) - 0.5;
r = r / norm(r);

end % function
Expand Down

0 comments on commit b33bb65

Please sign in to comment.