Inserting a double to a cell
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Cem Eren Aslan
 el 2 de Jun. de 2023
  
    
    
    
    
    Respondida: James Tursa
      
      
 el 2 de Jun. de 2023
            Hi all,
I try to find minimum value in two different colums and then i want to assign the smallest one to a cell. How can i search this minimum value in two different column? How can i insert a double to cell?
Thx.
0 comentarios
Respuesta aceptada
  James Tursa
      
      
 el 2 de Jun. de 2023
        E.g.,
x = randi(100,10,10) % sample data
columns = [4,7]; % columns to check
minx = min(x(:,columns)) % minimum of the two columns
c{1} = min(minx) % assign smallest one to cell element
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Get Started with Simulink 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!