Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Rでこの(matlab)マトリックスを作成する方法
ABC = {[1 1 3 ] [4 5 6 ] [1 1 2 ] [1 1 2 ] [1 32 2 ] [2 3 1 ] };
それはarrayにありRます:
array
R
ABC <- array(c(1,1,1, 1,1,32, 3,2,2, 4,1,2, 5,1,3, 6,2,1), dim=c(3,3,2)) > ABC , , 1 [,1] [,2] [,3] [1,] 1 1 3 [2,] 1 1 2 [3,] 1 32 2 , , 2 [,1] [,2] [,3] [1,] 4 5 6 [2,] 1 1 2 [3,] 2 3 1
(私があなたの構造が正しいと仮定します。私が最後に触れてから数十年になりmatlabます。)
matlab