Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
error in calculating mid point
조회 수: 2 (최근 30일)
이전 댓글 표시
i have a matrix
28 45781 5 0 0 13 31 77516 7 0 0 16 37 83311 9 0 0 40
i calculated mid point but i get error not getting exact result
F_mid = conv2(K, [0.5 0.5], 'valid')
k is my above matrix
the result i get is
F_mid =
1.0e+005 *
0.2290 0.2289 0.0000 0 0.0001
0.3877 0.3876 0.0000 0 0.0001
please help
댓글 수: 1
답변 (1개)
Andrei Bobrov
2012년 1월 11일
K = reshape([28 45781 5 0 0 13 31 77516 7 0 0 16 37 83311 9 0 0 40],6,[]).';
F_mid = conv2(K,[1 1;1 1]/4,'valid')
for you...
F_mid = conv2(K,[1;1]/2,'valid')
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!