Simple matlab doubt in a coding

조회 수: 4 (최근 30일)
Tankeswar Kumar
Tankeswar Kumar 2013년 2월 21일
편집: Anu Sebastian 2021년 3월 25일
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...................

채택된 답변

Miroslav Balda
Miroslav Balda 2013년 2월 21일
See
http://www.mathworks.com/help/matlab/matlab_prog/anonymous-functions.html
  댓글 수: 2
Tankeswar Kumar
Tankeswar Kumar 2013년 2월 21일
Still there is a little bit confusion.How i have calculate the eq(1).Will you please explain with an example...........
Anu Sebastian
Anu Sebastian 2021년 3월 25일
편집: Anu Sebastian 2021년 3월 25일
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');

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by