[問題] ode23 feval的錯誤 R2006a版本已回收
錯誤訊息
??? Error using ==> feval
Undefined command/function 'planet'.
Error in ==> funfun\private\odearguments at 110
f0 = feval(ode,t0,y0,args{:}); % ODE15I sets args{1} to yp0.
Error in ==> ode23 at 172
[neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, odeFcn, ...
==================================
程式碼
clear all;clc;
% Variable define
t0=0;
tf=25;
x0=[5 2];
[t,x]=ode23('planet',[t0 tf],x0); %('fire name',[t0 tf],tinit,other setting)
axies=([0 25 -10 5]);
plot(t,x(:,2))
title('ode23 result 2')
grid
書上的範例
已經有爬過文了
但是沒有我要的...Orz
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.127.33.142
※ 編輯: japing 來自: 140.127.33.142 (12/28 15:35)
推
12/29 16:21, , 1F
12/29 16:21, 1F
→
12/29 16:22, , 2F
12/29 16:22, 2F
→
12/29 16:22, , 3F
12/29 16:22, 3F
→
12/29 16:22, , 4F
12/29 16:22, 4F
→
12/30 03:43, , 5F
12/30 03:43, 5F
MATLAB 近期熱門文章
PTT數位生活區 即時熱門文章