Sorry about that...it was only for learning purposes...
"rng(stream.Seed);" instead of "rng(stream.get('Seed'));" gives a lower code size of 24.
Why not "s.State(end)=0;" instead of "s.State(end)=s.State(end)-s.State(end);"?
At that time, I didn't understand the stream correctly...
Remove any row in which a NaN appears
6866 Solvers
Number of 1s in the Binary Representation of a Number
359 Solvers
253 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3898 Solvers
525 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!