Borrar filtros
Borrar filtros

Subtract element matrix matlab!

1 visualización (últimos 30 días)
Francesco
Francesco el 11 de Feb. de 2014
Comentada: Azzi Abdelmalek el 11 de Feb. de 2014
prova=xlsread('2.csv')
[righe, colonne]=size(prova)
primo_elemento=prova(3,:)
I want to subtract this element to the whole prova matrix.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by