Programming, Matlab, Function, Basics, Electrical Engineering.
>> a=[1 2;3 4] a = 1 2 3 4 >> b=[4 5;8 9] b = 4 5 8 9 >> c=a.*b c = 4 10 24 36 >> c=a*b c = 20 23 44 51 >> % .* is element wise multiplication and * is matrix multiplication% // Creating a function in MAT-LAB Open the editor window with ‘edit’ command. function name logic end save it and call that