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

 Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 11 Fév 2014

0 votes

If you mean to remove
prova(3,:)=[]

2 commentaires

Francesco
Francesco le 11 Fév 2014
I want to substract at each columns of the prova variable the primo_elemento element.
bsxfun(@minus, prova,prova(3,:))

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by