poster
2019-12-10, 20:41
说A = rand(2,2,2); [a,b,c] =查找(A == A(1,2,2))
我得到a = 1 b = 4 c = 1
什么?
回答:
尝试这个:
[a,b,c] = ind2sub(size(A), find(A==A(1,2,2))) 资料来源: find (http://www.mathworks.com/access/helpdesk/help/techdoc/ref/find.html) , ind2sub (http://www.mathworks.com/access/helpdesk/help/techdoc/ref/ind2sub.html)
更多&回答... (https://stackoverflow.com/questions/3159715)
我得到a = 1 b = 4 c = 1
什么?
回答:
尝试这个:
[a,b,c] = ind2sub(size(A), find(A==A(1,2,2))) 资料来源: find (http://www.mathworks.com/access/helpdesk/help/techdoc/ref/find.html) , ind2sub (http://www.mathworks.com/access/helpdesk/help/techdoc/ref/ind2sub.html)
更多&回答... (https://stackoverflow.com/questions/3159715)