[問題] 求救!矩陣的錯誤已回收
這陣子在寫一份作業,卻碰到瓶頸無法解決
在我執行的時候出現這樣的警告
??? Attempt to reference field of non-structure array.
朋友幫忙檢查出錯誤從這兩行開始
dXc=-(rb+rf)*cos(theta+beta)-s.*cos(theta)-ds.*sin(theta);
dYc=-(rb+rf)*sin(theta+beta)-s.*sin(theta)+ds.*cos(theta);
另,
theta <1*361>double;
s <1*361>double;
ds <1*361>double;
beta=0;
請問這會是什麼情況下出現的錯誤?該如何排解?
十分感謝!!!!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.254.137.53
推
10/18 11:51, , 1F
10/18 11:51, 1F
→
10/19 02:29, , 2F
10/19 02:29, 2F
→
10/19 02:32, , 3F
10/19 02:32, 3F