필터 지우기
필터 지우기

Info

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

Help with error running a function

조회 수: 1 (최근 30일)
Lavorizia Vaughn
Lavorizia Vaughn 2021년 9월 30일
마감: Cris LaPierre 2021년 9월 30일
i have the code for #3 of the attached document. For some reason i am getting a warning about the variable p changing size. Im also geting an error for (the code below) which says unrecognized function or variable 'findzero'.
z = findzero(f,x(k-1),x(k),tol);
my code is as follows:
function p = findz(f,a,b,n,tol)
p = [];
x = linspace(a,b,n+1);
for k = 2:length(x)
if f(x(k)) * f(x(k-1)) > 0
continue
else
z = findzero(f,x(k-1),x(k),tol);
p = [p,z];
end
end
disp(p)
end

답변 (0개)

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by