フィルターのクリア

(error with GPOP2:Sample points must be unique )

6 ビュー (過去 30 日間)
Amirah Algethami
Amirah Algethami 2024 年 5 月 1 日
回答済み: Sayan 2024 年 5 月 6 日
Hi
I got message error: Sample points must be unique.
Error in interp1
Error in gpopsGuessRPMD
Error in gpopsSolveRPMD
Error in gpopsMeshShell
Error in gpops2
for my code format here:
x(t)=nombers
setup. bounds=bounds
setup.guess=guess
.
.
out: gpop(t,x) %(use interpolation )
How to getback to uniqueness values with in using closed backage??

回答 (1 件)

Sayan
Sayan 2024 年 5 月 6 日
Hi Amirah Algethami,
My understanding is that the issue is due to duplicate sample points used in interpolation. You can fix this by using the "unique" function. This will remove any duplicates in your sample points and sort them.
A similar kind of issue has been addressed in the following MATLAB answer.
You can find more information on "unique" function in the following documentation.
Hope this resolves the issue.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by