Feeds
已回答
convert a double array to something like logical
Late to the party, but how about this? A = [1 5 7 4]'; S = bsxfun(@eq,A,1:7) ans = 1 0 0 0 0 ...
convert a double array to something like logical
Late to the party, but how about this? A = [1 5 7 4]'; S = bsxfun(@eq,A,1:7) ans = 1 0 0 0 0 ...
11 years 前 | 0