Help me, Error using inline (line 51) Input must be a character vector.
조회 수: 1 (최근 30일)
이전 댓글 표시
q=get(handles.fo,'string');
syms x;
f=inline(q);
w=diff(f(x));
f2=inline(w);
xo=str2num(get(handles.xo,'string'));
x=xo
for i=0:1000
y=x
x=y-(f(x)/f2(x));
if x==y
break
end
end
x=num2str(x);
i=num2str(i);
set(handles.rootout,'string',x)
set(handles.iterout,'string',i)
댓글 수: 4
Walter Roberson
2019년 6월 27일
Unless you are using MATLAB 4.2 or earlier, you should not use inline()
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!