when two individual number remain in one cell such as a cell contain [300;350]. then how can i extact a single value from the cell?
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Mehedi
 el 4 de Jun. de 2014
  
    
    
    
    
    Respondida: David Sanchez
      
 el 4 de Jun. de 2014
            clc clear x1=5; x2=3; x3=2; p=cell(3,1); for i=1:4 if i==1 x1=6; elseif i==2 x1=7; elseif i==3 x1=8; end p{i}=[x1-x2; x1-x3] end
0 comentarios
Respuesta aceptada
  David Sanchez
      
 el 4 de Jun. de 2014
        To extract elements form a cell:
p{1}(1) % this will return first element of first cell
p{3}(2) % this will return second element of third cell
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!

