write a code using MATLAB to calculate recall and precision and then plot a graph on these values.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Entering Commands에 대해 자세히 알아보기

질문:

2015년 5월 26일

편집:

2015년 5월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by