![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/6107259_1522112012772_DEF.jpg)
Zachary Bassett
自 2017 起处于活动状态
Followers: 0 Following: 0
Feeds
提问
Is there a way to remove the nested for loops from this segment of code? I'm trying to make the code generic so it can take in n-number of moment arrays.
moment(:,:,1) = [1 0 0; 2 1 0]; moment(:,:,2) = [2 2 2; 3 0 1]; moment(:,:,3) = [3 1 2; 1 1 1]; moment(:,:,4) = [1 0 0; ...
8 years 前 | 3 个回答 | 0