Re: [其他] for 迴圏問題
抱歉 其實我不太懂程式 只是覺得這巢狀迴圈 J=1:3 應該會跑3次
可市跑出來的ˇ只有J=3
for j=1:3
c=0.18+0.02*(j-1);
x=[1e-6,1e-6,1e-6,1-1e-6];
[t, y]=ode45(@diflv4dhet,[0 8888],x,[],c,s,e);
for i=2:length(t)
if y(i-1,3) >0.1 && y(i,3) <0.1
w =t(i)+((0.1-y(i,3))*(t(i+1)-t(i))/(y(i+1,3)-y(i,3))) ;
%time temp
time=[time w];
end
end
T=time(2:end-1)-time(1:end-2) ;
T=T(end-49 : end);
end
point=[c*ones(1,50);T];
ptt=[ptt point];
end
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 120.107.198.122
→
04/13 23:32, , 1F
04/13 23:32, 1F
推
04/13 23:41, , 2F
04/13 23:41, 2F
→
04/13 23:42, , 3F
04/13 23:42, 3F
→
04/13 23:43, , 4F
04/13 23:43, 4F
→
04/13 23:55, , 5F
04/13 23:55, 5F
→
04/13 23:58, , 6F
04/13 23:58, 6F
推
04/14 01:10, , 7F
04/14 01:10, 7F
→
04/14 01:11, , 8F
04/14 01:11, 8F
→
04/14 01:12, , 9F
04/14 01:12, 9F
→
04/14 01:12, , 10F
04/14 01:12, 10F
→
04/15 01:15, , 11F
04/15 01:15, 11F
→
04/15 01:25, , 12F
04/15 01:25, 12F
推
04/15 07:40, , 13F
04/15 07:40, 13F
推
04/15 07:44, , 14F
04/15 07:44, 14F
→
04/15 07:45, , 15F
04/15 07:45, 15F
推
04/15 08:21, , 16F
04/15 08:21, 16F
→
04/15 08:22, , 17F
04/15 08:22, 17F
→
04/15 08:23, , 18F
04/15 08:23, 18F
→
04/15 08:23, , 19F
04/15 08:23, 19F
→
04/15 08:24, , 20F
04/15 08:24, 20F
→
04/15 08:50, , 21F
04/15 08:50, 21F
→
04/15 08:50, , 22F
04/15 08:50, 22F
→
04/15 11:59, , 23F
04/15 11:59, 23F
→
04/15 12:02, , 24F
04/15 12:02, 24F
推
04/16 09:15, , 25F
04/16 09:15, 25F
推
04/16 09:24, , 26F
04/16 09:24, 26F
推
04/16 10:50, , 27F
04/16 10:50, 27F
→
04/16 12:29, , 28F
04/16 12:29, 28F
→
04/16 12:30, , 29F
04/16 12:30, 29F
→
04/16 12:32, , 30F
04/16 12:32, 30F
→
04/16 12:58, , 31F
04/16 12:58, 31F
推
04/16 16:25, , 32F
04/16 16:25, 32F
→
04/16 19:19, , 33F
04/16 19:19, 33F
推
04/16 19:40, , 34F
04/16 19:40, 34F
討論串 (同標題文章)
MATLAB 近期熱門文章
PTT數位生活區 即時熱門文章