how can i put cell value in a vector?
    2 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Mira le
 il 18 Dic 2019
  
    
    
    
    
    Risposto: KALYAN ACHARJYA
      
      
 il 18 Dic 2019
            U =
  1×2 cell array
    [1×2 double]    [1×2 double]
U contains these values in cell
U{1}
ans =
     1     2
 U{2}
ans =
     2     3
s= []
I want to put the elements of U in s without duplicate value so I use this instruction:        s=unique([U{:}])
this error "Cell contents reference from a non-cell array object." appear, 
0 Commenti
Risposta accettata
Più risposte (1)
  Walter Roberson
      
      
 il 18 Dic 2019
        As discussed in your earlier question, you are overwriting all of U with your S variable, and after that U is no longer a cell array.
0 Commenti
Vedere anche
Categorie
				Scopri di più su Operators and Elementary Operations in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


