how to add the following array
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
how to add the command output_it(t,r,it)
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
4 个评论
Adam
2017-12-6
Stop keep spamming minor variations of the same question. Clarify exactly what you want in one question and then wait for answers. You aren't giving enough information in any of your questions. Addition is undefined, or at least ambiguous, on a single n-dimensional array.
Prabha Kumaresan
2017-12-6
Adam
2017-12-6
sum( output_it, 3 )
should do that.
回答(0 个)
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!