필터 지우기
필터 지우기

Error using * Inner matrix dimensions must agree

조회 수: 1 (최근 30일)
ding xian zhi
ding xian zhi 2017년 3월 19일
편집: per isakson 2017년 3월 19일
y=cos(x).*[0.5+(3*sin(x))./(1+x*x)]
Error using *
Inner matrix dimensions must agree.
I want to know where is the problem could anyone help me thx

채택된 답변

GEEVARGHESE TITUS
GEEVARGHESE TITUS 2017년 3월 19일
In the last part of the relation you are trying to do x*x, which is not possible. You should either use a dot operator or you need to transpose one of the x.
x=1:10;
y1=cos(x).*[0.5+(3*sin(x))./(1+x.*x)]
y2=cos(x).*[0.5+(3*sin(x))./(1+x*x')]

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by