Unrecognized function or variable 'dftp1151'.

1 回表示 (過去 30 日間)
Edwin Garcia
Edwin Garcia 2020 年 5 月 7 日
回答済み: Aman 2024 年 8 月 22 日
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 日
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 Center および File ExchangeInteractive Control and Callbacks についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by