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 comentarios

KSSV
KSSV el 12 de Mayo de 2016
why you want to make same dimension? Each column of x is same as win.
Nimisha oa
Nimisha oa el 12 de Mayo de 2016
I am getting an error that the dimensions are not equal

Iniciar sesión para comentar.

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 12 de Mayo de 2016
Maybe you want this
%-----Example-------------
x=rand(99,1000)
win=rand(1000,1)
%---------------------------
out=bsxfun(@times,x,win')

Categorías

Más información sobre Dynamic System Models en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 12 de Mayo de 2016

Comentada:

el 12 de Mayo de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by