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

2 visualizaciones (últimos 30 días)
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

Respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by