フィルターのクリア

How to multiply two matrices where A= 1415×6 and B=6×128

2 ビュー (過去 30 日間)
Nandita  Sarkar
Nandita Sarkar 2022 年 2 月 8 日
コメント済み: John D'Errico 2022 年 2 月 9 日
Matrices A=1415×6 and B=6×128
  7 件のコメント
Nandita  Sarkar
Nandita Sarkar 2022 年 2 月 9 日
編集済み: Nandita Sarkar 2022 年 2 月 9 日
I want my output 1415×128.
John D'Errico
John D'Errico 2022 年 2 月 9 日
Then A*B is EXACTLY what you do. Why do you think that is not what you get?
A = rand(1415,6);B = rand(6,128);
C = A*B;
size(C)
ans = 1×2
1415 128
Maybe you need to do as @Cris LaPierre suggests, and review what a matrix multiplication means, and then consider what the * operator does?
help mtimes
* Matrix multiply. X*Y is the matrix product of X and Y. Any scalar (a 1-by-1 matrix) may multiply anything. Otherwise, the number of columns of X must equal the number of rows of Y. C = MTIMES(A,B) is called for the syntax 'A * B' when A or B is an object. See MATLAB Operators and Special Characters for more details. See also TIMES, PAGEMTIMES. Documentation for mtimes doc mtimes Other functions named mtimes calendarDuration/mtimes InputOutputModel/mtimes codistributed/mtimes LagOp/mtimes dlarray/mtimes laurmat/mtimes duration/mtimes laurpoly/mtimes fints/mtimes tall/mtimes gpuArray/mtimes timeseries/mtimes icsignal/mtimes tsdata.datametadata/mtimes

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by