필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

could anyone help me to overcome the error in the following code.

조회 수: 1 (최근 30일)
jaah navi
jaah navi 2019년 5월 12일
마감: Rik 2019년 5월 12일
code:
A=[ 0.7684 0.0120;
0.5333 0.9666;
0.0684 0.8322;
0.1996 0.4453]
B=[0.6399 0.8965]
if size(A)>size(B)
A=A(size(B,1),:)
social=B-A
else
[jj,kk]=size(A)
[jjj,kkk]=size(B)
zz=zeros(jjj,kkk)
zz(1:jj,1:kk)=A
social=B-zz
end
when i run the code i am getting error stating Error using -
Matrix dimensions must agree.
Error in line social=B-zz
Could anyone help me to execute the code.
  댓글 수: 1
Rik
Rik 2019년 5월 12일
This is not what I meant. Why didn't you comment on my answer? Then I might have seen this earlier. I'll close this question and edit my previous answers to clarify. Please comment there if you need clarification.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by