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
KSSV 2016년 5월 12일
why you want to make same dimension? Each column of x is same as win.
Nimisha oa
Nimisha oa 2016년 5월 12일
I am getting an error that the dimensions are not equal

댓글을 달려면 로그인하십시오.

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2016년 5월 12일

0 개 추천

Maybe you want this
%-----Example-------------
x=rand(99,1000)
win=rand(1000,1)
%---------------------------
out=bsxfun(@times,x,win')

카테고리

도움말 센터File Exchange에서 Dynamic System Models에 대해 자세히 알아보기

질문:

2016년 5월 12일

댓글:

2016년 5월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by