フィルターのクリア

How do I create a 4D array and filing it in the efficient way

1 回表示 (過去 30 日間)
Ngai Nang Wong
Ngai Nang Wong 2018 年 8 月 31 日
コメント済み: Ngai Nang Wong 2018 年 9 月 1 日
Hi guys, I am working on the 4D assignment problem.
I have to fill the set of persons to the roles under each department in different companies,
eg. assign John to HR officer under HR department in Company A.
Each companies share the same set of departments and roles.
And each persons have their own value on the sets of roles.
I got the data but how do I create this kinds of 4D Array in the efficient way?

採用された回答

ahmed nebli
ahmed nebli 2018 年 8 月 31 日
編集済み: ahmed nebli 2018 年 8 月 31 日
u need to use the function cat like this:
T1=%the first array T2=%the second array T3=%the third array T4=%the forth array
4D_array= cat(4,T1,T2,T3,T4); %4 is the number of dimensions and T1..T4 are the arrays
or u can take a look at this https://www.mathworks.com/help/matlab/math/multidimensional-arrays.html

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by