[討論] 請問有沒有比較快的寫法
indx是一個index的向量,A和B是矩陣,我想把B中的某些元素放到A內
舉例來說:
for i = 2:10000
A(idx(i),idx(1:i-1))=B(idx(i),idx(1:i-1))
end
請問有比較快的寫法嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.184.40.155
※ 文章網址: https://www.ptt.cc/bbs/MATLAB/M.1432827101.A.BA5.html
→
05/28 23:34, , 1F
05/28 23:34, 1F
→
05/28 23:34, , 2F
05/28 23:34, 2F
推
05/28 23:59, , 3F
05/28 23:59, 3F
→
05/29 00:33, , 4F
05/29 00:33, 4F
→
05/29 00:45, , 5F
05/29 00:45, 5F
→
05/29 00:45, , 6F
05/29 00:45, 6F
→
05/29 00:56, , 7F
05/29 00:56, 7F
→
05/29 00:57, , 8F
05/29 00:57, 8F
→
05/29 00:57, , 9F
05/29 00:57, 9F
→
05/29 01:26, , 10F
05/29 01:26, 10F
→
05/29 01:27, , 11F
05/29 01:27, 11F
→
05/29 01:28, , 12F
05/29 01:28, 12F
→
05/29 01:29, , 13F
05/29 01:29, 13F
→
05/29 01:30, , 14F
05/29 01:30, 14F
→
05/29 01:31, , 15F
05/29 01:31, 15F
→
05/29 02:16, , 16F
05/29 02:16, 16F
→
05/29 03:41, , 17F
05/29 03:41, 17F
→
05/29 03:41, , 18F
05/29 03:41, 18F
→
05/29 03:41, , 19F
05/29 03:41, 19F
→
05/29 03:41, , 20F
05/29 03:41, 20F
→
05/29 03:42, , 21F
05/29 03:42, 21F
→
05/29 03:42, , 22F
05/29 03:42, 22F
→
05/29 05:18, , 23F
05/29 05:18, 23F
→
05/29 05:18, , 24F
05/29 05:18, 24F
→
05/29 05:22, , 25F
05/29 05:22, 25F
→
05/29 05:23, , 26F
05/29 05:23, 26F
→
05/29 06:08, , 27F
05/29 06:08, 27F
推
05/29 09:21, , 28F
05/29 09:21, 28F
→
05/29 09:22, , 29F
05/29 09:22, 29F
→
05/29 09:23, , 30F
05/29 09:23, 30F
→
05/29 09:24, , 31F
05/29 09:24, 31F
→
05/29 09:24, , 32F
05/29 09:24, 32F
→
05/29 09:26, , 33F
05/29 09:26, 33F
→
05/29 09:27, , 34F
05/29 09:27, 34F
→
05/29 09:27, , 35F
05/29 09:27, 35F
→
05/29 09:28, , 36F
05/29 09:28, 36F
推
05/29 09:29, , 37F
05/29 09:29, 37F
→
05/29 09:30, , 38F
05/29 09:30, 38F
→
05/29 09:31, , 39F
05/29 09:31, 39F
→
05/29 09:31, , 40F
05/29 09:31, 40F
→
05/29 09:32, , 41F
05/29 09:32, 41F
→
05/29 09:33, , 42F
05/29 09:33, 42F
→
05/29 09:34, , 43F
05/29 09:34, 43F
→
05/29 09:36, , 44F
05/29 09:36, 44F
推
05/29 09:38, , 45F
05/29 09:38, 45F
→
05/29 09:38, , 46F
05/29 09:38, 46F
→
05/29 09:38, , 47F
05/29 09:38, 47F
推
05/29 09:55, , 48F
05/29 09:55, 48F
推
05/29 10:43, , 49F
05/29 10:43, 49F
→
05/29 10:43, , 50F
05/29 10:43, 50F
→
05/29 10:44, , 51F
05/29 10:44, 51F
→
05/29 10:57, , 52F
05/29 10:57, 52F
→
05/29 10:57, , 53F
05/29 10:57, 53F
→
05/29 10:59, , 54F
05/29 10:59, 54F
推
05/29 11:04, , 55F
05/29 11:04, 55F
→
05/29 11:04, , 56F
05/29 11:04, 56F
→
05/29 11:08, , 57F
05/29 11:08, 57F
→
05/29 11:10, , 58F
05/29 11:10, 58F
推
05/29 11:12, , 59F
05/29 11:12, 59F
→
05/29 11:12, , 60F
05/29 11:12, 60F
→
05/29 11:13, , 61F
05/29 11:13, 61F
→
05/29 11:14, , 62F
05/29 11:14, 62F
→
05/29 11:14, , 63F
05/29 11:14, 63F
推
05/29 11:15, , 64F
05/29 11:15, 64F
→
05/29 11:16, , 65F
05/29 11:16, 65F
→
05/29 11:17, , 66F
05/29 11:17, 66F
→
05/29 11:18, , 67F
05/29 11:18, 67F
→
05/29 12:54, , 68F
05/29 12:54, 68F
討論串 (同標題文章)
MATLAB 近期熱門文章
PTT數位生活區 即時熱門文章