Sundials solvers in Matlab

5 ビュー (過去 30 日間)
Ajinkya
Ajinkya 2025 年 3 月 29 日
移動済み: Torsten 2025 年 3 月 30 日
I am getting following error
" Error in IDASolve (line 64)
[varargout{:}] = idm(mode,tout,itask); "
IDASolve is a matalb function with
mode = 20;
if nargin ~= 2
error('Wrong number of input arguments');
end
if nargout < 3 || nargout > 5
error('Wrong number of output arguments');
end
varargout = cell (nargout, 1);
[varargout{:}] = idm(mode,tout,itask);
How do I rectify this. Thanks
  5 件のコメント
Steven Lord
Steven Lord 2025 年 3 月 29 日
FYI as of release R2024a, several of the SUNDIALS solvers are available in MATLAB proper via the ode object. See the Release Notes.
Ajinkya
Ajinkya 2025 年 3 月 30 日
移動済み: Torsten 2025 年 3 月 30 日
@Image Analyst please find the code attached.
I am using sundials 2.6.2 version alongwith the sundialsTB toolbox to integrate the solvers available in sundials in order to solve the Differential Algebraic Equations.
IDASolve is a user defined function inside of the sundialsTB toolbox.
I am aware that the latest versions of Matlab contains the SUNDIALS solvers but I still wanted to use the sundials toolbox.
The above error I am getting when I run the DAE_IDAS.m file (attached file).

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeParallel Computing Fundamentals についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by