![]() |
如何在MATLAB中采样矩阵?
我在MATLAB中有一个矩阵,我想从该矩阵中抽取其他所有条目:
a = 1 5 9 13 2 6 10 14 3 7 11 15 4 8 12 16 而且我要: result = 1 9 3 11 没有for循环,该怎么办? 回答: 我不知道可以自动执行的多维方法,但是如果您愿意为每个维指定它,Matlab的索引就足够了: a(1:2:end,1:2:end) [url=https://stackoverflow.com/questions/1788180]更多&回答...[/url] |
所有时间均为北京时间。现在的时间是 01:08。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.