how to add multidimensional array

how to add multimensional array for the following command output_it(t,r,it) where output_it is 5*5*5 double
t is 1*1 double =5
r is 1*1 double=5
it is 1*1 double=5

1 件のコメント

Jan
Jan 2017 年 12 月 6 日
@Prabha Kumaresan: Please take a look into your list of questions. Do you see, that this way to ask is inefficient? Many of your question do not get any answer, because they are not clear enough to be understood. Posting a question multiple times reduces the chance to get an answer also, because this confuses the readers.

サインインしてコメントする。

回答 (1 件)

jean claude
jean claude 2017 年 12 月 6 日

0 投票

if you mean how to create 3D matrix 5*5*5 you can use
x(1:5,1:5,1:5)=0 % full of zero here

4 件のコメント

Prabha Kumaresan
Prabha Kumaresan 2017 年 12 月 6 日
i have created the multidimensional array what i want is i need to add the multidimensional array
Guillaume
Guillaume 2017 年 12 月 6 日
addition is a binary operation. You add two things together. What does add the array mean? What is added to what?
Prabha Kumaresan
Prabha Kumaresan 2017 年 12 月 6 日
output_it(:,:,1) =
1.0e+16 *
0.0009 0.0012 0.0038 0.0035 0.0008
0.0981 0.5152 1.4487 1.8023 1.3770
0.0976 0.2692 0.1790 0.0082 0.1358
0.1172 0.0592 0.0318 0.0493 0.0074
1.0626 1.3686 1.2719 0.1504 0.3147
output_it(:,:,2) = 1.0e+15 *
5.5882 3.2261 2.0471 0.8107 0.3256
0.6470 0.8608 0.0885 5.2482 0.6633
1.0742 1.7778 1.7474 0.4277 0.3984
0.0964 0.2087 1.3295 1.6438 0.2583
0.2825 0.0965 0.0975 0.3480 0.2124
output_it(:,:,3) =
1.0e+16 *
0.3408 0.3032 0.0391 1.0085 0.0671
0.0338 0.0086 0.0126 0.0910 0.0344
0.0032 0.0264 0.0096 0.0039 0.0076
0.0188 0.0117 0.0135 0.0202 0.0183
0.0111 0.0071 0.0134 0.0086 0.1364
output_it(:,:,4) =
1.0e+15 *
0.0708 0.0169 0.1283 0.0191 0.0231
0.9571 1.3700 0.9520 1.2947 2.2246
1.1430 0.3396 0.4596 0.2258 0.0568
0.2364 0.4816 0.3678 0.3591 0.2576
0.1950 0.1117 0.0927 0.1432 2.7904
output_it(:,:,5) =
1.0e+16 *
0.0043 0.0025 0.0022 0.0015 0.0009
0.0035 0.0100 0.0024 0.0022 0.0041
0.1268 0.0998 0.0474 0.0143 0.0178
0.6161 0.4428 0.2540 0.0215 0.6791
0.2631 0.2487 0.1171 0.3326 1.6135
i want to add output_it(t,r,it)
Stephen23
Stephen23 2017 年 12 月 6 日
編集済み: Stephen23 2017 年 12 月 6 日
@Prabha Kumaresan: Did you look at the answers here?:
Please stop spamming the same question multiple times. It does not help us to keep track of what information you have given us, and it makes it hard for you too.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2017 年 12 月 6 日

コメント済み:

Jan
2017 年 12 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by