Info

この質問は閉じられています。 編集または回答するには再度開いてください。

I have a matrix y of 160 by 4, I have to divide it by a 3D matrix h of dimensions 4 by 6 by 117.

1 回表示 (過去 30 日間)
Sajid Sarwar
Sajid Sarwar 2018 年 11 月 9 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I want to to do A=y./h Kindly guide.
  2 件のコメント
Steven Lord
Steven Lord 2018 年 11 月 9 日
It's not clear how to divide a matrix with 640 elements by an array with 2808 elements. Can you show with a smaller concrete example exactly what you want/expect the result to be? For instance, for the following 16-by-4 y and 4-by-6-by-11 h:
y = reshape(1:64, [16 4]);
h = reshape((1:264)+64, [4 6 11]); % y and h have no elements in common
What exactly should A be?
Sajid Sarwar
Sajid Sarwar 2018 年 11 月 9 日
i want to change matrix of 160 by 4 into 160 by 6 by 4 by adding zeros for dimension 6. and also change the second matrix(4 by 6 by 117) into (4 by 6 by 160) by adding zeros in 3rd dimension.

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by