Simple question... how do I multiply all elements of a matrix by 2?

4 views (last 30 days)
Hi, I have a 5*5 matrix. I would like all elements in this matrix to be divided by two..can someone please remind me how this is possible?
  1 Comment
Stephen23
Stephen23 on 23 Jun 2017
  • title: "...how do I multiply all elements..."
  • text: "...this matrix to be divided by two..."
So which do you want: multiplication or division?

Sign in to comment.

Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!