フィルターのクリア

How to combine 2 two-dimensional arrays into 3-D array with two pages?

1 回表示 (過去 30 日間)
Michael
Michael 2011 年 11 月 30 日
Well, I have 2 5x4 arrays of data of test scores of 2 years. I am not sure how to combine them together to get a 3-D array of the data. I know how to create a 3-D array of just one but not combining the two of them. Any help would be appreciated. The arrays are called year1 and year2, combine to create 3-D array for testdata. Would it just be as simple as testdata = {year1,year2} ??

採用された回答

Walter Roberson
Walter Roberson 2011 年 11 月 30 日
testdata = cat(3, year1, year2);

その他の回答 (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