In MATLAB, the array product of two vectors can be obtained using the .* operator. To find the array product of a and b, you can simply do:
main.m53 chars4 lines
This will return an output of:
main.m38 chars6 lines
The .* operator performs element-wise multiplication of the two vectors.
gistlibby LogSnag