Let a and b be threedimensional vectors that are entered fro
Let a and b be three-dimensional vectors that are entered from input statements. Write a MATLAB script that performs: 1. Dot Product between the two vectors and 2. Cross Product a x b. Do not use the built-in MATLAB functions or FOR loops. The output should be: The dot product of [xx.xx, xx.xx, xx.xx] and [xx.xx, xx.xx, xx.xx] is xx.xx. The cross product of [xx.xx, xx.xx, xx.xx] and (xx.xx, xx.xx, xx.xx] is (xx.xx, xx.xx, xx.xx]
Solution
P.S.
if you want to input a and b along the program remove % from first to lines and enter your values, if not then simply input in the workspace/command window and then run the program.
