ode45 invalid call to script octave 6.1.0(GUI)

조회 수: 11 (최근 30일)
Imene Yed
Imene Yed 2021년 5월 22일
댓글: Imene Yed 2021년 5월 22일
I'm trying to run a program of a big system of odes with 43 equations and 165 constants,here is a preview of my code:
script1:I called it imene99
%dn/dt=npoint
function npoint=imene99(t,n,k1,k2,k3,k4,k5,k6,k7,k8,k9,k10,k11,k12,k13,k14,k15,k16,k17,k18,k...)
%chemin réactionnels
npoint= [k1*n(2)*n(42)+k15*n(5)*n(9)+k16*n(5)*n(26)+k25*n(4)*n(26)+k29*n(4)*n(9)+k33*n(4)*n(11)+......)
....
script 2 :I called it call_imene99
I put my constants there
%costantes :
%temperature
T=17000
k1=2.36 *(1e-12)*(T/300)^(-0.29)*exp(17.60/T)
k2 =3.24 *(1e-12) *(T/300)^(-0.66)
k3=3.50 *(1e-12)*(T/300)^(-0.53)* exp(3.20/T)
k156=...
%initial conditions
[IC1,IC2,IC3,IC4,IC5,IC6,IC7,IC8,IC9,IC10...,IC43]=deal(10^19)
IC=[IC1 IC2 IC3 IC4 IC5 IC6 IC7 IC8 IC9 IC10 IC11 ..... IC43]
%time
t0 = 0;
tf = 1E-7;
t1 = 5E-12;
%resolving
[t,x]=ode45('imene99',[0 5E-12 1E-7],IC)
error: invalid call to script C:\Users\lenovo\imene99.m
error: called from
imene99
starting_stepsize at line 53 column 5
ode45 at line 196 column 25
call_imene99 at line 205 column 8
  댓글 수: 5
Imene Yed
Imene Yed 2021년 5월 22일
no I wrote imene99 ( as the name of my file) but it still doesn't work
Imene Yed
Imene Yed 2021년 5월 22일

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by