Find empty cells in 3D cell?
    4 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Sharif Khalil
 am 2 Okt. 2019
  
    
    
    
    
    Kommentiert: Walter Roberson
      
      
 am 3 Okt. 2019
            I have a 3D cell RowXColXDep (12X125X1216), I want to find the empty cells (which row, column, and depth). I used:
[Row Col Dep] = find(cellfun(@isempty,channelResp));
but it did not work, it works only for 2D cells. Is there a solution for 3D cells?
Thanks in advance
0 Kommentare
Akzeptierte Antwort
  Shubham Gupta
      
 am 3 Okt. 2019
        Try this:
[r,c] = find(cellfun(@isempty,channelResp));
[nR,nC,nD] = size(channelResp);
Dep = floor(c/nC-0.0001)+1;
Col = c - nC*(Dep-1);
Row = r;
Let me know if you have doubts.
2 Kommentare
  Shubham Gupta
      
 am 3 Okt. 2019
				I am glad I could help. Please, make sure to accept the answer if it solves your problem. Cheers 
Siehe auch
Kategorien
				Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


