Subtract element matrix matlab!

1 Ansicht (letzte 30 Tage)
Francesco
Francesco am 11 Feb. 2014
Kommentiert: Azzi Abdelmalek am 11 Feb. 2014
prova=xlsread('2.csv')
[righe, colonne]=size(prova)
primo_elemento=prova(3,:)
I want to subtract this element to the whole prova matrix.

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by