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...
Get the elements of diagonal and antidiagonal for any m-by-n matrix
275 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
555 Solvers
Make a vector of prime numbers
201 Solvers
Back to basics - mean of corner elements of a matrix
303 Solvers
Deleting an element in a matrix
328 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!