The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Subtract values in a matrix
Replies: 6   Last Post: Nov 19, 2012 12:20 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Bob Ferreira

Posts: 3
Registered: 11/17/12
Subtract values in a matrix
Posted: Nov 17, 2012 2:12 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi there!

I need really need some help on this,
I have a matrix which has "L" lines and "C" columns. I want to subtract each value in the matrix by the value the first value in the first line of its column, and give me a matrix with those value, with the first values of the first line being "0".

Example: m = [2,2,2;3,3,3;4,4,4] the matrix given should be [0,0,0;-1,-1,-1;-2,-2,-2]

I hope I made myself understood, if not, please ask away.

Thank you for your time.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.