write a code using MATLAB to calculate recall and precision and then plot a graph on these values.
2 views (last 30 days)
Show older comments
R=[10,7,3,2,5,1,8,6,4,9]
R =
10 7 3 2 5 1 8 6 4 9
V=[1,2,10]
V =
1 2 10
intersection (R,V)
??? Undefined function or method 'intersection' for input arguments of type 'double'.
intersect (R,V)
ans =
1 2 10
[s index]= intersect(R,V)
s =
1 2 10
index =
6 4 1
% run a loop 3 times
size(index,2)
ans =
3
length(index)
ans =
3
1 Comment
James Tursa
on 26 May 2015
It isn't clear what you want done or what you are having problems with. Please read this:
Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!