MATLAB Answers

Repeat a 2D matrix at multiple places in 5D matrix

2 views (last 30 days)
ANAND NALE
ANAND NALE on 20 Aug 2021
Commented: ANAND NALE on 20 Aug 2021
I have a 5D matrix
A = zeros(5,2,2,2,2)
I have another matrix (2D Matrix)
B = [ 1 6
2 7
3 8
4 0
5 10];
Now I need to evaluate:
A(:, :, 2, :, :) = B;
Its shows an error.

Accepted Answer

More Answers (0)

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!