Matlab array output from 'for' loop -


  रूट = स्थानांतरण ([- 10 2 20 -5]); wd_root = शून्य (); I = 1 के लिए: रूट (i) & gt; 0 रूट (i) wd_root (i,:) = [रूट (i)] एंड एंड wd_root  

यह आउटपुट [0, 2,20] के रूप में सरणी, लेकिन मैं केवल [2,10] के रूप में केवल सरणी का उत्पादन करने की कोशिश कर रहा हूं। मुझे नहीं पता कि यह अतिरिक्त तत्व '0' क्यों जोड़ रहा है क्या कोई गलती देख सकता है? धन्यवाद


Comments

Popular posts from this blog

sql - Find last match with latest inserted name in table -

c# - XML serialize base class without knowing derived class -

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -