subtract value from column in table
    10 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Dion Theunissen
 el 10 de Jun. de 2021
  
    
    
    
    
    Respondida: Scott MacKenzie
      
 el 10 de Jun. de 2021
            hi,
I want to subtract a table column from a value. 
like this:
 for c = 1:8
        minus = table2array(Scan(1,c));
        Scan(:,c) = (Scan(:,c)-minus);
    end
but i get the error that operator '-' is not supported in tables. 
How can I fix this?
0 comentarios
Respuesta aceptada
  Scott MacKenzie
      
 el 10 de Jun. de 2021
        You need to use braces:
Scan{:,c} = (Scan{:,c}-minus);
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Logical en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

