필터 지우기
필터 지우기

how can I stop this error?

조회 수: 1 (최근 30일)
Mary Jon
Mary Jon 2013년 10월 1일
댓글: Walter Roberson 2013년 10월 2일
this is code of my equation getting from you.
Z = zeros(size(W1)); kernel = [Z, W1, Z; W3, Z, W4; Z, W2, Z]; filtered = conv2(vk, kernel, 'same'); vk = (1-w)*vk + filtered./W(i,j);
my equation
v(i,j))^(k+1)= (1-ω)(v(i,j))^(k)-ω[(W1(i,j)(v(i+1,j))^(k)+ W2(i,j)(v(i-1,j))^(k+1)+ W3(i,j)(v(i,j+1)^(k)+ W4(i,j)(v(i,j-1))^(k+1)(/(W i,j)]
v matrix
k iteration
W matrix
w constant
the error I have is!.
Undefined function or variable "vk".
Error in ==> SOR at 69 filtered = conv2(vk, kernel, 'same');
  댓글 수: 5
Mary Jon
Mary Jon 2013년 10월 1일
Sorry ,but what I do to 'vk'? how make it defined ?
Image Analyst
Image Analyst 2013년 10월 1일
vk is presumably your original signal. If you don't know what it is, then what do you think you're filtering? Why are you attempting to filter something but don't know what it is? If you're running a filter, you must have some idea of what you want to filter, otherwise, why bother?

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

답변 (1개)

Walter Roberson
Walter Roberson 2013년 10월 2일
Initialize with k = 0 and vk = your original signal.
  댓글 수: 2
Mary Jon
Mary Jon 2013년 10월 2일
I know 'vk' my original initial condition ,I defined 'v' as a matrix n*m
Walter Roberson
Walter Roberson 2013년 10월 2일
Initialize vk = v.

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

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by