error in 'isempty(x)' when x is in the class of dataset
    3 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
Hi,
I have problems using function isempty(x) when x is in the class of dataset. For example,
>> x=randn(100,10); >> xx=dataset(x); >> isempty(xx) ??? Reference to non-existent field 'nobs'.
Error in ==> dataset.isempty at 11 t = (a.nobs == 0) (a.nvars == 0);
I think this is because when I use 'dataset', only certain fields are created, which does not include the field 'nobs'. When isempty.m tries to locate this field, the error occurs. However, I am not sure how to solve this problem. Can anyone help me with this please?
Thanks in advance.
8 Kommentare
  Sean de Wolski
      
      
 am 11 Jul. 2012
				
      Bearbeitet: Sean de Wolski
      
      
 am 11 Jul. 2012
  
			Excellent!
Xiu, please write your comment as an answer and accept it to mark this question closed!
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Environment and Settings 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!



