Programming, Matlab, Function, Basics, Electrical Engineering.
-0.8655 -1.4491 0.1837 -0.8487 1.2607 -0.1765 0.3335 -0.4762 -0.3349 0.6601 0.7914 0.3914 0.8620 0.5528 -0.0679 >> ones(4) ans = 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 >> diag(7 3 4 5) diag(7 3 4 5) ↑ Error: Unexpected MATLAB expression. >> diag([7 3 4 5]) ans = 7 0 0 0 0 3 0 0 0 0 4 0 0 0 0 5 >> rand(6)