필터 지우기
필터 지우기

How to solve this code error in

조회 수: 1 (최근 30일)
gfgf99
gfgf99 2015년 5월 31일
댓글: Manish Joshi 2015년 5월 31일
k = [1];
l = [5];
n = [6];
m = [8];
re = [k l];
ne = [m re];
cv = re.*ne ;
  댓글 수: 1
Manish Joshi
Manish Joshi 2015년 5월 31일
re = [1 5] and ne = [8 1 5] both of these contain 2 and three elements respectively whereas in order to use .* both matrices/vectors should have same dimensions.

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

채택된 답변

Roger Stafford
Roger Stafford 2015년 5월 31일
편집: Roger Stafford 2015년 5월 31일
The vector 're' has 2 elements and 'ne' has 3 elements, so the element-by-element multiplication re.*ne becomes meaningless. How can you pair two elements with three elements?
  댓글 수: 1
gfgf99
gfgf99 2015년 5월 31일
편집: gfgf99 2015년 5월 31일
Thanks for your guidance :)

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by