Error matrix Dimensions must agree

조회 수: 1 (최근 30일)
wided hechkel
wided hechkel 2020년 6월 11일
편집: wided hechkel 2020년 6월 11일
a=1.2;
x=-a:(2.4/128):a;
[h,k]= meshgrid(-4:0.01:4,0:0.01:11);
y = ((k.*x)./(minus(h,(sign(minus(x,h)).*a)))) + ((k.*a)./(minus(a,(sign(minus(x,h)).*h))));
plot(x,y)
  댓글 수: 2
KSSV
KSSV 2020년 6월 11일
Check the size of x, it is different from h, k.
wided hechkel
wided hechkel 2020년 6월 11일
편집: wided hechkel 2020년 6월 11일
Thank you very much. Yes, I know it different , but I don't know how can I simulate it. Please have a look at the two pdf attached were the problem is clarified and give me please your remarks!

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by