Skip to content
Snippets Groups Projects
Commit c10156f7 authored by William Lövfors's avatar William Lövfors
Browse files

Updated shuffle to be able to shuffle matrices

parent 2b85f2b4
No related branches found
No related tags found
No related merge requests found
function v=shuffle(v)
if isrow(v)
v=v(randperm(length(v)));
else
v=v(randperm(size(v,1)),:);
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment