Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
高级会员
注册日期: 2019-11-21
帖子: 3,006
声望力: 66 ![]() |
![]()
fprintf(['# True Positive: %d \n',... '# False Positive: %d \n',... '# True Negative: %d \n',... '# False Negative: %d \n,',... numTruePos,... numFalsePos,... numTrueNeg,... numFalseNeg]); 但是我得到了错误:
??? Error using ==> horzcat The following error occurred converting from logical to char: Error using ==> char Conversion to char from logical is not possible. Error in ==> toyProblem at 40 fprintf(['# True Positive: %d \n',... 回答: 您似乎在错误的位置使用了格式字符串的右括号[ ] 。尝试这个: fprintf(['# True Positive: %d \n',... '# False Positive: %d \n',... '# True Negative: %d \n',... '# False Negative: %d \n'],... %# Moved it to here... numTruePos,... numFalsePos,... numTrueNeg,... numFalseNeg); %# ... from here 更多&回答... |
![]() |
![]() |