How to make matrix dimensions equal?
Ältere Kommentare anzeigen
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 Kommentare
KSSV
am 12 Mai 2016
why you want to make same dimension? Each column of x is same as win.
Nimisha oa
am 12 Mai 2016
Antworten (1)
Azzi Abdelmalek
am 12 Mai 2016
Maybe you want this
%-----Example-------------
x=rand(99,1000)
win=rand(1000,1)
%---------------------------
out=bsxfun(@times,x,win')
Kategorien
Mehr zu Dynamic System Models finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!