[問題]關於ADC模擬遇到的ERROR已回收

看板MATLAB作者 (Harry)時間14年前 (2011/09/02 19:33), 編輯推噓2(202)
留言4則, 2人參與, 最新討論串1/1
因為小弟沒學過MATLAB直接拿學長寫好的 CODE來跑模擬 但出現的下面兩的警告 Warning: Size vector should be a row vector with integer elements. > In fft12 at 179 Warning: Integer operands are required for colon operator when used as index > In fft12 at 187 請問這兩個是什麼意思內?? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.33.213.223

09/03 10:42, , 1F
找看看有沒有 [y;x]=size(a) 之類的, 改成 [y,x]=size(a)
09/03 10:42, 1F

09/03 13:23, , 2F
有 har = zeros(1,har_n); --->第一個錯誤
09/03 13:23, 2F

09/03 13:24, , 3F
和 noise(i*sp+1)=abs(eps); 這是第二個錯誤~~
09/03 13:24, 3F

09/03 17:08, , 4F
har_n 是什麼呢?
09/03 17:08, 4F
文章代碼(AID): #1EOBy1Bw (MATLAB)