필터 지우기
필터 지우기

is sendEmail a matlab function?

조회 수: 1 (최근 30일)
Beatrice Ayedun
Beatrice Ayedun 2017년 1월 9일
댓글: Image Analyst 2017년 1월 9일
The code below is testing the datasets based on a mixed k- means clustering and is not working due to the sendEmail funtion
%Testing of Benchmark Data Sets
nTrials = 1;
sendEmail('Benchmark Begin!')
for i=1:5
if i==1
display('Iris')
iris = clusteringCompare('iris.all.csv',[],5,2,nTrials);
sendEmail('Iris Done!')
% elseif i==2
%
% display('Lenses')
% lenses = clusteringCompare('lenses.all.csv',1:4,5,2,nTrials);
% sendEmail('Lenses Done!')
elseif i==3
display('Heart')
heartlabels = [2,3,6,7,9,11,12,13];
heart = clusteringCompare('Heart2.csv',...
heartlabels,14,2,nTrials);
sendEmail('Heart Done!')
elseif i==4
display('Vote')
vote = clusteringCompare('vote.all.csv',1:16,17,2,nTrials);
sendEmail('Vote Done!')
elseif i==5
display('Australian')
australianlabels = [1,4,6,8,9,11,12];
australian = clusteringCompare('australian.all.csv',...
australianlabels,15,2,nTrials);
sendEmail('Australian Done!')
end
% pause(15*60)
end
statsSummary
this is the error it is displaying Undefined function or variable 'sendEmail'.
Error in benchmark (line 3) sendEmail('Benchmark Begin!')

답변 (1개)

Guillaume
Guillaume 2017년 1월 9일
편집: Guillaume 2017년 1월 9일
No, sendEmail is not a matlab function. sendmail is, but as it requires at least two arguments, it's not the function that is used in your code.
If you didn't write that code, you will have to contact the author to get the source of that sendEmail function.
edit: for testing purpose, as long as you don't actually need an email, you can always do:
sendEmail = @(str) disp(str);
before running your code.
  댓글 수: 3
Beatrice Ayedun
Beatrice Ayedun 2017년 1월 9일
The code worked a bit and later gave error.
Benchmark Begin! Iris Starting parallel pool (parpool) using the 'local' profile ... connected to 2 workers. No appropriate method, property, or field 'numericClusst' for class 'clusteringCompare'.
Error in clusteringCompare/compareOut (line 96) idx = obj.(name).idx(:,:,i);
Error in clusteringCompare (line 84) obj = compareOut(obj);
Error in benchmark (line 9) iris = clusteringCompare('iris.all.csv',[],5,2,nTrials);
Image Analyst
Image Analyst 2017년 1월 9일
Looks like a bug in their program. Do you know how to use the debugger? If not, see this link http://blogs.mathworks.com/videos/2012/07/03/debugging-in-matlab/. Apparently obj is an object of the class clusteringCompare and name must be the string 'numericClusst'. You can do
properties(obj)
to get a list of properties that class has, or simply look in the clusteringCompare.m file. You won't find a numericClusst property or method. Perhaps it was misspelled. Perhaps it's numericClust or numericCluster or something else.

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

카테고리

Help CenterFile Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by