I keep getting error using plot not enough input arguments.
이전 댓글 표시
I keep getting error when I try to plot the following code and I don't really know what to do.
figure
plot(recall,precision)
xlabel("Recall")
ylabel("Precision")
grid on
title(sprintf("Average Precision = %.2f",ap))
Error using plot
Not enough input arguments.
댓글 수: 3
Torsten
2023년 5월 4일
And how are the arrays for recall and prescision defined in your code ?
At the moment, both plot components are empty - thus nothing to plot.
Adrian Kleffler
2023년 5월 4일
Adrian Kleffler
2023년 5월 4일
답변 (1개)
Dyuman Joshi
2023년 5월 4일
You need to sort your x data.
recallv = cell2mat(recall);
precisionv = cell2mat(precision);
[r,index] = sort(recallv);
p = precisionv(index);
figure
plot(r,p)
xlabel("Recall")
ylabel("Precision")
grid on
title(sprintf("Average Precision = %.2f",ap))
댓글 수: 6
Adrian Kleffler
2023년 5월 4일
편집: Adrian Kleffler
2023년 5월 4일
Dyuman Joshi
2023년 5월 4일
Could you please attach your data?
Adrian Kleffler
2023년 5월 4일
Dyuman Joshi
2023년 5월 4일
The arrays - recall and precision.
Also, could you elaborate on this statement?
"it looks like there is average precision for all the classes in one graph ... how to improve it ? "
Adrian Kleffler
2023년 5월 4일
Adrian Kleffler
2023년 5월 4일
카테고리
도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


