[問題] 求救!矩陣的錯誤已回收

看板MATLAB作者 (扳手)時間15年前 (2010/10/15 18:37), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串1/1
這陣子在寫一份作業,卻碰到瓶頸無法解決 在我執行的時候出現這樣的警告 ??? 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
我試了沒有問題耶,rb和rf是一般的參數嗎?
10/18 11:51, 1F

10/19 02:29, , 2F
只是數值,10和50
10/19 02:29, 2F

10/19 02:32, , 3F
還是我提供完整的原始碼會比較清楚?不過有點多
10/19 02:32, 3F
文章代碼(AID): #1Ck2y1Oq (MATLAB)