ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

matlab script array output

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?

0 Kudos
Message 1 of 3
(3,752 Views)

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

0 Kudos
Message 2 of 3
(3,726 Views)

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

0 Kudos
Message 3 of 3
(3,718 Views)