top of page

Multiply matrices corresponding to its elements in MATLAB

1. Open your command window in MATLAB

2. Enter the first matrix, say, x = [3 4 5 ]

3. Enter another matrix, say, y = [1 2 3] corresponding to which you want to multiply.

4. Then type a new variable, say, z = x.*y, using a "dot" will make sure that corresponding element multiplication is done rather than the conventional method.

5. Hit enter


42 views0 comments

Recent Posts

See All

Comments


©2021 by Tech Aficionado.

  • 0c23332059f19519c291c00496b5f056
  • Facebook
  • Twitter
  • LinkedIn
bottom of page