Subtracting the first element of each row from the rest of the row ?

Hi all,
I have a matrix like A=[3.5,4.5;2.4,3.2]. I want to subtract the first element of each row from the rest of the row resulting in [0,1.5;0,0.7].
Many thanks !

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 21 Feb 2014

Commented:

on 21 Feb 2014

Community Treasure Hunt

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

Start Hunting!