Filter löschen
Filter löschen

is sendEmail a matlab function?

1 Ansicht (letzte 30 Tage)
Beatrice Ayedun
Beatrice Ayedun am 9 Jan. 2017
Kommentiert: Image Analyst am 9 Jan. 2017
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!')

Antworten (1)

Guillaume
Guillaume am 9 Jan. 2017
Bearbeitet: Guillaume am 9 Jan. 2017
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 Kommentare
Beatrice Ayedun
Beatrice Ayedun am 9 Jan. 2017
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 am 9 Jan. 2017
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Parallel Computing Fundamentals finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by