[問題] 維度不合已回收
t=0;
tf=300;
Pa = 5;
Pb = 1;
p0 = 35;
dt = 1:300;
kd= (log(2))/5;
p = (p0*ones(tf-1,1))';
tb = (t + abs(gamrnd(1/0.64,60*0.64,tf,1)))';
V = (abs(gamrnd(1/0.64,60*0.64,tf,1)))';
i = 1:299;
p(i+1) = p(i) + V(i);
while (t <= tb & t <= tf)
p(dt+1) = p(dt)-kd*p(dt)*dt;
t = t+dt;
end
------
程式執行之後一直跑出訊息:
??? Error using ==> mtimes
Inner matrix dimensions must agree.
Error in ==> burstnewform at 14
p(dt+1) = p(dt)-kd*p(dt)*dt;
可是結果又跑得出來,圖也話得出來
檢查了
所有MATRIX的大小也一樣
為什麼還會出現上面的訊息???
--
再示範一次標題地雷殺人法:
下邳城曹操鏖兵 白門樓呂布殞命
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.129.77.5
→
10/02 16:15, , 1F
10/02 16:15, 1F
推
10/02 16:27, , 2F
10/02 16:27, 2F
MATLAB 近期熱門文章
PTT數位生活區 即時熱門文章