Simple matlab doubt in a coding
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Tankeswar Kumar
le 21 Fév 2013
Modifié(e) : Anu Sebastian
le 25 Mar 2021
In a code there is a line:
MMt=@(z) M(Mt(z))-------------------->(1) where
M - Either a handle to a function that takes a N vector and returns a K vector , or a KxN matrix.
Mt - Handle to a function that takes a K vector and returns an N vector.
What the above line eq(1) indicates. What is the meaning of '@'. Please help...................
0 commentaires
Réponse acceptée
Miroslav Balda
le 21 Fév 2013
See
http://www.mathworks.com/help/matlab/matlab_prog/anonymous-functions.html
2 commentaires
Anu Sebastian
le 25 Mar 2021
Modifié(e) : Anu Sebastian
le 25 Mar 2021
Cannot get any output from this code
global nimg newpixel=rgb2gray(nimg); glcm = graycomatrix(newpixel,'Offset',[2 0]); stats = graycoprops(glcm,{'Energy','Homogeneity'}); settest = [ stats.Energy stats.Homogeneity]; settest=[settest 1]; save('testdataset.mat','settest');
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Environment and Settings 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!