Programming, Matlab, Function, Basics, Electrical Engineering.
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >> fix(rand(6)*10) ans = 2 6 3 4 5 1 3 4 6 9 1 9 6 7 1 6 2 7 1 7 0 6 8 5 7 9 7 8 0 4 1 8 5 8 4 0 >> rand( rand( ↑ Error: Expression or statement is incorrect — possibly unbalanced (, {, or [. Did you mean: >> rand(10,5,6) ans(:,:,1) = 0.6820