11-07-2015 09:40 AM
Hello
I am using matlab script to run knnclassify function of matlab on labview. The function is expected to return an array of classes but I am getting only one single value. Any help with the attached VI?
11-07-2015 01:25 PM
Why are you mixing Matlab and LabVIEW? If the problem requires Matlab, consider doing the entire thing in Matlab. I don't know what KNN is, but it sounds "Matlab-centric" ...
Bob Schor
11-07-2015 01:34 PM
Another question, probably more relevant than my previous one -- what happens when you execute "classes=knnclassify(sample,training,group,2,'euclidean');" in Matlab with sample, training, and group as in the example LabVIEW code you posted? Do you get an array?
Also, it appears that knnclassify is being deprecated by Mathsoft.
Bob Schor