推 s4300026: 小女子的文好多人回啊 TAT 07/30 00:55
各位高手,遇到ㄧ個問題,
For i=1:6
For j=j+1:1:6
Eval(['compare' num2str(i) num2str(j) '=' dist(A(i),B(j)])
End
End
2個問題:
1。我是想顯示 compare12 這裡12是變數I j 產生
2。欲產生 1跟23456
2跟3456
3跟456
4跟56
5跟6 的結果
J 試過很多算式,還是得不到要的答案。
小女子感恩了。
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 59.191.211.64
※ 文章網址: https://www.ptt.cc/bbs/MATLAB/M.1437802642.A.E16.html