對於一個實驗,我們在Matlab中生成了一些由8個磁盤組成的圖像。我們限制了磁盤之間以及磁盤和框架之間的最小距離以及磁盤重心(COG)的位置。波紋管與上升降的COG的組合物的一個例子「第三」在Mathematica中尋求目標
FraXYs = {{4.32, 3.23}, {35.68, 26.75}}
stiDisks = {{{8, 11}, 1}, {{10, 17}, 1}, {{16, 24}, 1}, {{25, 22},1},
{{31, 22}, 1}, {{7, 21}, 2}, {{16, 12}, 2}, {{19, 22}, 2}}
Graphics[{White, EdgeForm[Thick],
Rectangle @@ FraXYs,
Red, Disk[{14.77, 18.91}, 1],
Blue, Opacity[.6], EdgeForm[Black],
Blue, Thickness[0.003],
Opacity[1],
Black,
Disk[#[[1]], #[[2]]] & /@ stiDisks}, ImageSize -> {400, 300}]
我想生成Mathematica中那些刺激。以下是我正在處理的元素(特徵和約束)。措施在Cm。這些形狀的重心(COG)被定義爲磁盤位置的區域。
特點:
刺激框架: {{XMIN,XMIN},{XMAX,YMAX}}
FraXYs = {{4.32, 3.23}, {35.68, 26.75}}
5個小盤:半徑
rSmall=1
3大磁盤:個半徑
rLarge=2
的限制條件:
形狀之間最小距離邊緣:
:minDistSha=1
形狀的邊緣和框邊之間的最小距離
minDistFra=1
從中央形狀COG的距離:
minDistCogCenter=2
潛在的,我需要將約束磁盤的COG是從中心一定的角度(THETA協調極性系統? )。因此,協調製約其銷售成本將位於我可以選擇磁盤協調
angleBin=22.5
每22.5度極有Mathematica中有用的功能來實現約束下的選擇拋開Selct
。
我會很想知道是否可以用一個特定的COG位置生成1個合成的封閉公式。
顯然,我需要獲得一個1000個合成物的池。使用36度的「theta約束」,我應該從10個不同的theta酒吧中提取10 * 100的組合物,使它們的COG位於離中心最小或固定的距離處。
請告訴我,如果需要澄清。感謝您的關注。
您可能會發現部分//blog.wolfram。 COM/2011/06/01 /測試你的-subitizing能力/。它是關於生成圖表以測試快速計數能力的。 –
謝謝!確實很棒! – 500