约翰·BG

18098
2
徽章
180
分数
1 - 22中的22

约翰·BG提交评论解决方案1448126

x2 = x [max1,ind1] = max(x2,[],2)x2(sub2ind(size(x),[1:3],ind1'))= nan [max2,ind2] = max(x2,x2,x2,[],2)y =平均值(x2(sub2ind(size(x),[1:size(x,1)],ind2')))解决问题,但检查器返回并非有效答案。

2018年2月23日

约翰·BG提交评论解决方案1448117

以下4行解决了这个问题[max1,ind1] = max(x,[],2)x(sub2ind(size(x),[1:3],ind1',ind1'))= nan [max2,ind2] = max(x,[],2)y =平均值(x(sub2ind(size(x),[1:3],ind2'))))但是在线检查器返回并不是有效的答案

2018年2月23日

约翰·BG已收到评论者徽章解决方案926968

2016年7月25日

约翰·BG提交评论解决方案926968

请更正测试套件。测试3 b_correct是错误的:在哪里测试b_correct = [3 5 0 2 1]应该是b_correct = [3 2 0 5 1]

2016年7月25日

约翰·BG已收到求解器徽章解决方案768529

2015年10月29日

1 - 22中的22