Subtract element matrix matlab!

2 views (last 30 days)
prova=xlsread('2.csv')
[righe, colonne]=size(prova)
primo_elemento=prova(3,:)
I want to subtract this element to the whole prova matrix.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 11 Feb 2014
If you mean to remove
prova(3,:)=[]
  2 Comments
Francesco
Francesco on 11 Feb 2014
I want to substract at each columns of the prova variable the primo_elemento element.
Azzi Abdelmalek
Azzi Abdelmalek on 11 Feb 2014
bsxfun(@minus, prova,prova(3,:))

Sign in to comment.

More Answers (0)

Categories

Find more on Automotive in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!