what is meaning of this plzz tell me
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mohd Shahrukh
le 21 Mar 2018
Commenté : Star Strider
le 26 Mar 2018
feat=[]; class=[];
0 commentaires
Réponse acceptée
Star Strider
le 21 Mar 2018
Those assignments set the ‘feat’ and ‘class’ variables to empty arrays [].
Note that class (link) is a MATLAB function, and assigning a variable the same name ‘overshadows’ it. This will cause problems later if you want to use the class function.
2 commentaires
Plus de réponses (1)
Walter Roberson
le 21 Mar 2018
When you assign [] to an entire variable, it assigns a double precision value that is 0 rows by 0 columns -- the empty double precision array.
When you assign [] to an indexed variable, such as feat(3,:) = [], then the meaning is quite different: it means to delete the indicated portion of the variable.
Voir également
Catégories
En savoir plus sur Assembly dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!