필터 지우기
필터 지우기

Unrecognized function or variable 'dftp1151'.

조회 수: 8 (최근 30일)
Edwin Garcia
Edwin Garcia 2020년 5월 7일
답변: Aman 2024년 8월 22일 9:56
Hi, I use dfield8 or dfield9 (Not both) and don't draw because has a error like that:
Error using feval
Unrecognized function or variable 'dftp1151'.
Error in dfield9>dfdp45 (line 4041)
f0 = feval(dfcn,t,y);
Error in dfield9 (line 1817)
[tp,xp] = feval(solvhandle,dfcn,intplus,initpt(2),disph);
Error in dfield9 (line 1710)
dfield9('solution',initpt,disph);
Error while evaluating Figure WindowButtonDownFcn.
How can I fix it?

답변 (1개)

Aman
Aman 2024년 8월 22일 9:56
Hi Edwin,
As per my understanding, you are unable to use the "dfield9" function due to some error.
Without the actual code, it is difficult to debug the problem, but still, I went ahead and checked the code of the "dfield9" function and found that in the function it checks for old files created by the "dfield9" function, and for finding them out, it checks the name of the file starting with the string "dftp" and then sets some solver handler as per that. The exact line that checks for this is below.
% Next we look for old files created by dfield9.
oldfiles = dir('dftp*.m');
So as per the error you are receiving, the code found the 'dftp1151.m' file and is trying to execute it but is unable to do so as it may not be added to your path, so can you please add that file to the path and rerun the code to see if it works or not?
I hope this will help you to proceed ahead with your workflow.

카테고리

Help CenterFile Exchange에서 MATLAB Mobile Fundamentals에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by