Programming, Matlab, Function, Basics, Electrical Engineering.
summ=sumAllElements(M) v=M(:); summ=sum(v); //Remember the top function is the only function that you can call from outside(command window) scope of the function — — — — — — — — — — — — — — — — — — — Local Variables are accessible inside a function but we can assign the function to a global term by