How to make matrix dimensions equal?
古いコメントを表示
Size of x is 99*1000
Size of win is 1000*1
How to make both x and win the same dimension
Y=x.*win
2 件のコメント
KSSV
2016 年 5 月 12 日
why you want to make same dimension? Each column of x is same as win.
Nimisha oa
2016 年 5 月 12 日
回答 (1 件)
Azzi Abdelmalek
2016 年 5 月 12 日
Maybe you want this
%-----Example-------------
x=rand(99,1000)
win=rand(1000,1)
%---------------------------
out=bsxfun(@times,x,win')
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!