[問題]function的input
我在撰寫函數時
將兩個矩陣當input丟入,並設定一個輸出
function Z_cal=Z_cal(RN,X)
卻出現error
Subscript indices must either be real positive integers or logicals.
輸入必須是正整數或邏輯
若把RN,X都設為正整數丟入
就可以執行
想問問怎麼解決
謝謝
補充一下 RN是1*6介於0~1的小數
X是2*20介於-5~+5的數
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.190.65
※ 編輯: bear32147 來自: 140.112.190.65 (03/13 15:38)
推
03/13 15:40, , 1F
03/13 15:40, 1F
→
03/13 15:48, , 2F
03/13 15:48, 2F
→
03/13 15:57, , 3F
03/13 15:57, 3F
→
03/13 15:57, , 4F
03/13 15:57, 4F
→
03/13 16:23, , 5F
03/13 16:23, 5F
→
03/13 16:30, , 6F
03/13 16:30, 6F