{"id":3134,"date":"2013-05-22T23:53:00","date_gmt":"2013-05-22T14:53:00","guid":{"rendered":"https:\/\/hdmr.org\/d\/?e=1868"},"modified":"2013-05-22T23:53:00","modified_gmt":"2013-05-22T14:53:00","slug":"blogn-1868","status":"publish","type":"post","link":"https:\/\/hdmr.org\/d\/?e=1868","title":{"rendered":"Scilab\u3067\u306f\u901f\u3044\u3068\u3055\u308c\u308b"},"content":{"rendered":"<p>\u7814\u7a76\u5ba4\u3067\u306eScilab\u306e\u6f14\u7fd2\u3067\u753b\u50cf\u51e6\u7406\u3092\u3084\u3063\u3066\u3044\u305f\u306e\u3060\u304c\u3001<\/p>\n<p>\u305d\u306e\u4e2d\u3067\u30ac\u30a6\u30b7\u30a2\u30f3\u30d5\u30a3\u30eb\u30bf\u3092\u751f\u6210\u3059\u308b\u51e6\u7406\u3092\u66f8\u3044\u3066\u3044\u305f\u3002<\/p>\n<p>\u305d\u3053\u3067Scilab\u6d41\u306e\u3084\u308a\u65b9\u3092\u805e\u3044\u305f\u306e\u3060\u304c\u3001\u4e00\u822c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u306f\u975e\u52b9\u7387\u306b\u898b\u3048\u308b\u3084\u308a\u65b9\u304cScilab\u6d41\u3060\u305d\u3046\u3067\u3002<\/p>\n<hr \/>\n<p>\u4e00\u822c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u4f8b\u3067\u3084\u308c\u3070\u3053\u3093\u306a\u98a8\u306b\u306a\u308b\u3088\u306d\u3002<\/p>\n<pre class=\"csharpcode\">gaussian=zeros(size,size);\n<span class=\"kwrd\">for<\/span> i=1:size\n  <span class=\"kwrd\">for<\/span> j=1:size\n    gaussian(j,i)=exp(((j-size\/2)^2+(i-size\/2)^2)\/2\/s);\n  end\nend\ngaussian=gaussian\/sum(gaussian);<\/pre>\n<p>for\u3067\u30eb\u30fc\u30d7\u56de\u3057\u3066\u8a08\u7b97\u3059\u308b\u3088\u306d\u3063\u3066\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u7dcf\u548c\u304c1\u306b\u306a\u308b\u3088\u3046\u306b\u6b63\u898f\u5316\u3057\u3066\u308b\u304c\u3001\u3053\u308c\u306fsum\u3092\u4f7f\u3063\u3066\u3084\u308c\u3070\u7c21\u5358\u306a\u306e\u3067\u3001\u305d\u3053\u306fScilab\u3089\u3057\u3044\u66f8\u304d\u65b9\u3060\u304c\u3002<\/p>\n<hr \/>\n<p>\u3068\u3053\u308d\u3067Scilab\u3067\u306f\u3053\u308c\u3088\u308a\u3082\u3053\u3046\u66f8\u3044\u305f\u65b9\u304c\u901f\u3044\u305d\u3046\u3060\u3002<\/p>\n<pre class=\"csharpcode\">[Y,X]=ndgrid(linspace(-size\/2,size\/2,size),linspace(-size\/2,size\/2,size));\ngaussian=exp((Y.^2+X.^2)\/2\/s);\ngaussian=gaussian\/sum(gaussian);<\/pre>\n<p>\u305a\u3044\u3076\u3093\u30b3\u30f3\u30d1\u30af\u30c8\u306b\u3067\u304d\u3066\u3044\u308b\u3002<\/p>\n<p>\u306a\u306b\u3092\u3057\u3066\u308b\u304b\u3068\u3044\u3046\u8a71\u3060\u304c\u3001ndgrid\u3092\u4f7f\u3063\u3066size\u00d7size\u306e\u884c\u5217\u30922\u3064\u751f\u6210\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>\u3053\u308c\u3067Y\u306f \u2013size\/2\u304b\u3089size\/2\u306e Y\u5ea7\u6a19\u306e\u5165\u3063\u305f\u884c\u5217\u3001X\u306b\u306fX\u5ea7\u6a19\u306e\u5165\u3063\u305f\u884c\u5217\u304c\u751f\u6210\u3055\u308c\u308b\u3002<\/p>\n<p>\u3053\u306e2\u3064\u306e\u884c\u5217\u3092\u4f7f\u3063\u3066\u3001\u5404\u8981\u7d20\u3067 exp((x^2+y^2)\/2\/s \u3092\u8a08\u7b97\u3055\u305b\u308b\u3068\u3002\u5404\u8981\u7d20\u3078\u306e\u3079\u304d\u4e57\u306f .^ \u3067\u66f8\u3051\u3066\u3001<\/p>\n<p>exp\u306b\u884c\u5217\u3092\u5165\u308c\u308c\u3070\u5404\u8981\u7d20\u306bexp\u304c\u9069\u7528\u3055\u308c\u308b\u3002<\/p>\n<p>Scilab\u306f\u884c\u5217\u304c\u57fa\u672c\u3060\u304b\u3089\u3053\u3046\u66f8\u3051\u3070\u305f\u3061\u307e\u3061\u8a08\u7b97\u304c\u51fa\u6765\u3066\u3057\u307e\u3046\u3002<\/p>\n<hr \/>\n<p>\u3084\u3063\u3066\u308b\u3053\u3068\u306f\u4e00\u7dd2\u3067\u3001\u5f8c\u8005\u306e\u65b9\u304c\u30b3\u30f3\u30d1\u30af\u30c8\u306b\u3067\u304d\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308b\u3002<\/p>\n<p>\u305f\u3060\u3001\u5b9f\u969b\u306e\u51e6\u7406\u3092\u8003\u3048\u3066\u307f\u308b\u3068\u3001X,Y\u3068\u3044\u3063\u305f\u884c\u5217\u3092\u4e00\u65e6\u751f\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001\u5f8c\u8005\u306e\u65b9\u304c\u8a08\u7b97\u91cf\u306f\u591a\u3044\u3088\u3046\u306b\u601d\u3048\u308b\u3002<\/p>\n<p>\u305d\u308c\u3067\u3082for\u3092\u4f7f\u3046\u3088\u308a\u3001\u884c\u5217\u306e\u8a08\u7b97\u306b\u843d\u3068\u3057\u8fbc\u3093\u3060\u65b9\u304cScilab\u3067\u306f\u901f\u3044\u3089\u3057\u3044\u3002<\/p>\n<p>\u5b9f\u969b\u3001\u3082\u3046\u3061\u3087\u3063\u3068\u91cd\u3044\u51e6\u7406\u3001\u5177\u4f53\u7684\u306b\u306f\u30bc\u30ed\u30af\u30ed\u30b9\u70b9\u306e\u691c\u51fa\u3067\u6bd4\u8f03\u3057\u3066\u307f\u308b\u306820\u500d\u3050\u3089\u3044\u306e\u901f\u5ea6\u5dee\u304c\u3042\u3063\u305f\u3088\u3046\u3060\u3002<\/p>\n<p>\u306a\u3093\u3067\u3060?<\/p>\n<hr \/>\n<p>\u8abf\u3079\u3066\u307f\u308b\u3068\u3053\u3093\u306a\u8a18\u8ff0\u304c\u3072\u3063\u304b\u304b\u3063\u305f\u3002<\/p>\n<blockquote>\n<p>\u30bf\u30a4\u30c8\u30eb\u306e\u901a\u308a\u3067\u3059\u3002Scilab\u306b\u9650\u3089\u305a\u30a4\u30f3\u30bf\u30d7\u30ea\u30bf\u51e6\u7406\u3092\u3059\u308b\u8a00\u8a9e\u3067\u306f\uff0c\u30eb\u30fc\u30d7\u8a08\u7b97\u306f\u9045\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>(<a href=\"http:\/\/www.phys.u-ryukyu.ac.jp\/~myogi\/member\/yogi\/scilab\/calc3.htm\">Scilab\u306e\u4f7f\u7528\u6cd53-\u30eb\u30fc\u30d7\u8a08\u7b97\u306f\u9045\u3044\u306e\u3067\uff0c\u3067\u304d\u308b\u3060\u3051\u4f7f\u308f\u306a\u3044 (\u7409\u7403\u5927\u5b66 \u7406\u5b66\u90e8 \u7269\u8cea\u5730\u7403\u79d1\u5b66\u79d1 \u7269\u7406\u7cfb NMR\u7269\u6027\u7814\u7a76\u5ba4)<\/a> )<\/p>\n<\/blockquote>\n<p>\u8a08\u7b97\u304c\u91cd\u3044\u306e\u3067\u306f\u306a\u304f\u3001\u69cb\u6587\u89e3\u6790\u304c\u91cd\u3044\u306e\u3060\u3068\u3044\u3046\u3002<\/p>\n<p>\u78ba\u304b\u306b\u7d14\u7c8b\u306a\u30a4\u30f3\u30bf\u30d7\u30ea\u30bf\u306a\u3089for\u30eb\u30fc\u30d7\u3067\u306f\u30eb\u30fc\u30d7\u3054\u3068\u306b\u69cb\u6587\u89e3\u6790\u2192\u5b9f\u884c\u306e\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3059\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n<p>\u305d\u308c\u306b\u5bfe\u3057\u3066\u3001\u884c\u5217\u306e\u8a08\u7b97\u3067\u66f8\u3051\u3070\u3001\u8a08\u7b97\u306f\u3068\u3082\u304b\u304f\u3001\u69cb\u6587\u89e3\u6790\u306f\u4e00\u5ea6\u884c\u3048\u3070\u305d\u308c\u3067\u3088\u3044\u3002<\/p>\n<p>\u8a08\u7b97\u91cf\u304c\u5c11\u3005\u5897\u3048\u3066\u3082\u3001for\u3067\u69cb\u6587\u89e3\u6790\u3092\u5ef6\u3005\u3068\u7e70\u308a\u8fd4\u3059\u3088\u308a\u3082\u307e\u3057\u3068\u3044\u3046\u3053\u3068\u3089\u3057\u3044\u3002<\/p>\n<hr \/>\n<p>\u305f\u3060\u3001\u30a4\u30f3\u30bf\u30d7\u30ea\u30bf\u578b\u306e\u8a00\u8a9e\u3068\u7d39\u4ecb\u3055\u308c\u308b\u3053\u3068\u3082\u591a\u3044\u3001Perl\u30fbRuby\u30fbPython\u306a\u3069\u306f\u3001<\/p>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u304d\u3001\u307e\u305a\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u884c\u3063\u3066\u304b\u3089\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u610f\u8b58\u3059\u308b\u3053\u3068\u306f\u306a\u3044\u304c\u3001\u5185\u90e8\u7684\u306b\u306f \u30b3\u30f3\u30d1\u30a4\u30eb\u2192\u5b9f\u884c \u306e\u6d41\u308c\u3092\u8e0f\u3093\u3067\u3044\u308b\u308f\u3051\u3060\u3002<\/p>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u3068\u3044\u3063\u3066\u3082\u30cd\u30a4\u30c6\u30a3\u30d6\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3059\u308b\u3088\u3046\u306a\u3082\u306e\u3067\u306f\u306a\u304f\u3066\u3001\u4e2d\u9593\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3059\u308b\u51e6\u7406\u306a\u3093\u3060\u3051\u3069\u3001<\/p>\n<p>\u69cb\u6587\u89e3\u6790\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b1\u56de\u3084\u308b\u3060\u3051\u3067\u6e08\u3080\u3057\u3001\u6700\u9069\u5316\u3092\u65bd\u3059\u3053\u3068\u3082\u3067\u304d\u308b\u3002<\/p>\n<p>\u3068\u306b\u304b\u304f\u3001\u5b9f\u884c\u524d\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u65b9\u304c\u305a\u3063\u3068\u9ad8\u901f\u306b\u52d5\u4f5c\u3067\u304d\u308b\u306e\u3067\u3001\u30a4\u30f3\u30bf\u30d7\u30ea\u30bf\u578b\u306e\u8a00\u8a9e\u3068\u7d39\u4ecb\u3055\u308c\u308b\u3082\u306e\u3082\u305d\u3046\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u591a\u3044\u3002<\/p>\n<p>\u3060\u304b\u3089\u3001\u30a4\u30f3\u30bf\u30d7\u30ea\u30bf\u578b\u306e\u8a00\u8a9e\u3060\u304b\u3089for\u30eb\u30fc\u30d7\u304c\u9045\u3044\u3068\u3044\u3046\u306e\u306f\u4e00\u822c\u7684\u306b\u306f\u6b63\u3057\u3044\u8aac\u660e\u3068\u306f\u601d\u308f\u306a\u3044\u304c\u3001<\/p>\n<p>\u4e8b\u524d\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u884c\u308f\u305a\u3001\u672c\u5f53\u306b\u9010\u6b21\u7684\u306b\u30bd\u30fc\u30b9\u3092\u8aad\u307f\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u78ba\u304b\u306b\u6b63\u3057\u3044\u3002<\/p>\n<hr \/>\n<p>Scilab\u3067\u306f\u9ad8\u901f\u3068\u3055\u308c\u308b\u8a18\u8ff0\u3067\u306f\u3001\u3068\u306b\u304b\u304f\u884c\u5217\u3092\u5c71\u307b\u3069\u751f\u6210\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n<p>\u306a\u306e\u3067\u30e1\u30e2\u30ea\u6d88\u8cbb\u304c\u6fc0\u3057\u3044\u305d\u3046\u3060\u3002<\/p>\n<p>Scilab\u3058\u3083\u306a\u304f\u3066MATLAB\u306e\u8a71\u3060\u304c\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3059\u308b\u3068\u304d\u30e1\u30e2\u30ea\u304c\u8db3\u3089\u306a\u304f\u3066\u56f0\u3063\u3066\u3044\u308b\u3068\u8a00\u3063\u3066\u3044\u308b\u4eba\u304c\u3044\u305f\u3002<\/p>\n<p>C\u3067\u66f8\u3051\u3070\u30e1\u30e2\u30ea\u4e0d\u8db3\u306e\u554f\u984c\u306f\u89e3\u6c7a\u3059\u308b\u304c\u3001\u3057\u304b\u3057MATLAB\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u4f7f\u3048\u305a\u3001\u7279\u306bGUI\u306e\u9762\u3067\u4e0d\u4fbf\u304c\u751f\u3058\u308b\u3002<\/p>\n<p>\u305d\u3046\u3044\u3046\u308f\u3051\u3067\u56f0\u3063\u3066\u3044\u305f\u3088\u3046\u3060\u304c\u3002<\/p>\n<hr \/>\n<p>\u884c\u5217\u8a08\u7b97\u3078\u306e\u5f37\u3055\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u5145\u5b9f\u3092\u6c42\u3081\u3066Scilab\u3092\u4f7f\u3046\u308f\u3051\u3060\u304c\u3001<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3068\u3057\u3066\u898b\u305f\u3068\u304d\u306e\u5f31\u3055\u304c\u3053\u3046\u3044\u3046\u3068\u3053\u308d\u306b\u73fe\u308c\u3066\u3044\u305f\u306e\u304b\u306a\u3068\u3002<\/p>\n<p>\u78ba\u304b\u306b\u4fbf\u5229\u306a\u3093\u3060\u3051\u3069\u3001\u51e6\u7406\u304c\u9045\u304f\u3066\u3084\u3063\u3066\u3089\u308c\u306a\u3044\u3068\u304b\u3001\u51e6\u7406\u3067\u304d\u308b\u30c7\u30fc\u30bf\u6570\u304c\u9650\u3089\u308c\u308b\u3068\u304b\u3001<\/p>\n<p>\u305d\u3046\u3044\u3046\u3053\u3068\u306b\u306a\u308b\u3050\u3089\u3044\u306a\u3089\u3001Perl\u30fbRuby\u3060\u3068\u304b\u8ce2\u3044\u8a00\u8a9e\u3092\u4f7f\u3046\u304b\u3001C\u3067\u66f8\u3044\u3066\u30cd\u30a4\u30c6\u30a3\u30d6\u30b3\u30fc\u30c9\u3067\u30ac\u30b7\u30ac\u30b7\u52d5\u304b\u3059\u306e\u304c\u3088\u3044\u3088\u3046\u306b\u601d\u3048\u308b\u3002<\/p>\n<p>Scilab\u3067\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u3092\u4f5c\u3063\u3066\u3001\u5834\u5408\u306b\u3088\u3063\u3066\u306f\u4ed6\u306e\u74b0\u5883\u306b\u52d5\u304b\u3059\u3068\u3001\u305d\u3046\u3044\u3046\u3053\u3068\u3082\u8003\u616e\u306b\u5165\u308c\u308b\u3079\u304d\u304b\u306a\u3068\u3002<\/p>\n<p>Scilab\u3067\u95a2\u65701\u3064\u3067\u3067\u304d\u3066\u3044\u305f\u3053\u3068\u3092\u3001\u81ea\u5206\u3067\u8a18\u8ff0\u3059\u308b\u5fc5\u8981\u3082\u3042\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3051\u3069\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7814\u7a76\u5ba4\u3067\u306eScilab\u306e\u6f14\u7fd2\u3067\u753b\u50cf\u51e6\u7406\u3092\u3084\u3063\u3066\u3044\u305f\u306e\u3060\u304c\u3001 \u305d\u306e\u4e2d\u3067\u30ac\u30a6\u30b7\u30a2\u30f3\u30d5\u30a3\u30eb\u30bf\u3092\u751f\u6210\u3059\u308b\u51e6\u7406\u3092\u66f8\u3044\u3066\u3044\u305f\u3002 \u305d\u3053\u3067Scilab\u6d41\u306e\u3084\u308a\u65b9\u3092\u805e\u3044\u305f\u306e\u3060\u304c\u3001\u4e00\u822c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u306f\u975e\u52b9\u7387\u306b\u898b\u3048\u308b\u3084\u308a\u65b9\u304cScil [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-3134","post","type-post","status-publish","format-standard","hentry","category-computer"],"_links":{"self":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts\/3134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3134"}],"version-history":[{"count":0,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts\/3134\/revisions"}],"wp:attachment":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}