MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > Why does ndims(zeros(1,1,1)) equal 2? 

Subject: Why does ndims(zeros(1,1,1)) equal 2? From: Alan Date: 20 Jun, 2011 13:51:04 Message: 1 of 12 
Why does ndims(zeros(1,1,1)) equal 2 and not 3? 
Subject: Why does ndims(zeros(1,1,1)) equal 2? From: matt dash Date: 20 Jun, 2011 14:26:04 Message: 2 of 12 
"Alan" wrote in message <itnj88$5ka$1@newscl01ah.mathworks.com>... 
Subject: Why does ndims(zeros(1,1,1)) equal 2? From: Steven_Lord Date: 20 Jun, 2011 14:27:15 Message: 3 of 12 

Subject: Why does ndims(zeros(1,1,1)) equal 2? From: Alan Date: 20 Jun, 2011 17:03:04 Message: 4 of 12 
> Because trailing singleton dimensions are ignored, as stated in the 
Subject: Why does ndims(zeros(1,1,1)) equal 2? From: Florin Neacsu Date: 20 Jun, 2011 17:16:20 Message: 5 of 12 
"Alan" wrote in message <itnug8$c3e$1@newscl01ah.mathworks.com>... 
Subject: Why does ndims(zeros(1,1,1)) equal 2? From: Steven_Lord Date: 20 Jun, 2011 17:23:39 Message: 6 of 12 

Subject: Why does ndims(zeros(1,1,1)) equal 2? From: Matt J Date: 20 Jun, 2011 17:32:04 Message: 7 of 12 
"Alan" wrote in message <itnug8$c3e$1@newscl01ah.mathworks.com>... 
Subject: Why does ndims(zeros(1,1,1)) equal 2? From: James Tursa Date: 20 Jun, 2011 18:04:04 Message: 8 of 12 
"Matt J" wrote in message <ito06k$hn3$1@newscl01ah.mathworks.com>... 
Subject: Why does ndims(zeros(1,1,1)) equal 2? From: James Tursa Date: 20 Jun, 2011 19:23:02 Message: 9 of 12 
"James Tursa" wrote in message <ito22k$nq0$1@newscl01ah.mathworks.com>... 
Subject: Why does ndims(zeros(1,1,1)) equal 2? From: Matt J Date: 20 Jun, 2011 19:44:05 Message: 10 of 12 
"James Tursa" wrote in message <ito6mm$aun$1@newscl01ah.mathworks.com>... 
Subject: Why does ndims(zeros(1,1,1)) equal 2? From: James Tursa Date: 20 Jun, 2011 20:21:04 Message: 11 of 12 
"Matt J" wrote in message <ito7u4$eq3$1@newscl01ah.mathworks.com>... 
Subject: Why does ndims(zeros(1,1,1)) equal 2? From: James Tursa Date: 20 Jun, 2011 20:32:02 Message: 12 of 12 
"James Tursa" wrote in message <itoa3g$lfm$1@newscl01ah.mathworks.com>... 
No tags are associated with this thread.
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.