フィルターのクリア

I have 3 double array of sizes 6x1 double, 4x1 double and 5x1 double. I like to combine them to make a structure of size 1x3 struct containing all these 3 double arrays.

6 ビュー (過去 30 日間)
I have 3 double array of sizes 6x1 double, 4x1 double and 5x1 double. I like to combine them to make a structure of size 1x3 struct containing all these 3 double arrays.
If we click on 1x3 struct, inside it should look like this:
Fields times
1 6x1 double
2 4x1 double
3 5x1 double
How can I do it? Could you kindly help? Thank you.

採用された回答

Stephen23
Stephen23 2023 年 1 月 11 日
A = rand(6,1);
B = rand(4,1);
C = rand(5,1);
S = struct('times',{A,B,C})
S = 1×3 struct array with fields:
times

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStructures についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by