![]() |
Matlab查找不适用于高维数组?
说A = rand(2,2,2); [a,b,c] =查找(A == A(1,2,2))
我得到a = 1 b = 4 c = 1 什么? [B]回答:[/B] 尝试这个: [a,b,c] = ind2sub(size(A), find(A==A(1,2,2))) 资料来源: [URL="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/find.html"]find[/URL] , [URL="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/ind2sub.html"]ind2sub[/URL] [url=https://stackoverflow.com/questions/3159715]更多&回答...[/url] |
所有时间均为北京时间。现在的时间是 01:08。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.