{"id":12977,"date":"2025-03-17T14:20:01","date_gmt":"2025-03-17T05:20:01","guid":{"rendered":"https:\/\/blogs.mathworks.com\/japan-community\/?p=12977"},"modified":"2025-03-17T14:20:01","modified_gmt":"2025-03-17T05:20:01","slug":"basis_of_graphics_object","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/japan-community\/2025\/03\/17\/basis_of_graphics_object\/","title":{"rendered":"MATLAB \u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u3044\u308d\u306f"},"content":{"rendered":"<p>\u7686\u3055\u3093\u3053\u3093\u306b\u3061\u306f\u3001\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u30c1\u30fc\u30e0\u306e\u9060\u85e4\u3067\u3059\u3002<\/p>\n<p>\u6628\u5e74\u672b\u30b2\u30fc\u30df\u30f3\u30b0 PC \u3092\u8cb7\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u4eca\u307e\u3067\u30b9\u30da\u30c3\u30af\u30ae\u30ea\u30ae\u30ea\u3067\u52d5\u3044\u3066\u3044\u305f\u30b2\u30fc\u30e0\u304c\u30b5\u30af\u30b5\u30af\u52d5\u304f\u306e\u3067\u3001\u6065\u305a\u304b\u3057\u306a\u304c\u3089\u6700\u8fd1\u306f\u30b2\u30fc\u30e0\u4e09\u6627\u306e\u81ea\u5815\u843d\u306a\u751f\u6d3b\u3092\u9001\u3063\u3066\u3044\u307e\u3059\u3002\u6700\u8fd1\u306e\u30b2\u30fc\u30e0\u306f\u3069\u308c\u3082\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u304c\u30ad\u30ec\u30a4\u306a\u306e\u3067\u3001\u30b2\u30fc\u30e0\u306e\u4e16\u754c\u306b\u5165\u308a\u8fbc\u3093\u3067\u3044\u308b\u3088\u3046\u306a\u611f\u899a\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3088\u306d\u2026\u2026\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u300c\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u300d\u7e4b\u304c\u308a\u3067\u3001MATLAB \u306e\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u306e\u6839\u5e79\u3092\u62c5\u3063\u3066\u3044\u308b\u300c\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u306b\u3064\u3044\u3066\u306e\u6280\u8853\u8a18\u4e8b\u306b\u306a\u308a\u307e\u3059\uff01<\/p>\n<h2><strong>\u76ee\u6b21<\/strong><\/h2>\n<ol>\n<li><a href=\"#1\">\u300c\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u3068\u306f\uff1f<\/a><\/li>\n<li><a href=\"#2\">\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u968e\u5c64<\/a><\/li>\n<li><a href=\"#3\">\u30cf\u30f3\u30c9\u30eb\u3068\u30d7\u30ed\u30d1\u30c6\u30a3<\/a><\/li>\n<li><a href=\"#4\">\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u691c\u7d22<\/a><\/li>\n<li><a href=\"#5\">\u5fdc\u7528\u4f8b<\/a><\/li>\n<li><a href=\"#6\">\u307e\u3068\u3081<\/a><\/li>\n<\/ol>\n<h1 id=\"1\"><span style=\"color: #ff6600\">1. \u300c\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u3068\u306f\uff1f<\/span><\/h1>\n<p>\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u306f\u3001MATLAB \u4e0a\u3067\u53ef\u8996\u5316\u3092\u884c\u3046\u305f\u3081\u306b\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u7fa4\u306e\u3053\u3068\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001\u7686\u3055\u3093\u3082\u3088\u304f\u4f7f\u3063\u3066\u3044\u308b\u3067\u3042\u308d\u3046 plot \u95a2\u6570\u306b\u3088\u3063\u3066\u63cf\u753b\u3055\u308c\u308b\u30b0\u30e9\u30d5\u3082\u3053\u306e\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u8a72\u5f53\u3057\u307e\u3059\u3002<\/p>\n<pre>t = 0:0.1:10;\r\ny1 = sin(t);\r\ny2 = cos(t);\r\nplot(t, y1, t, y2)\r\n<\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-12995 size-medium\" src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2025\/03\/plotSinCos-300x267.png\" alt=\"\" width=\"300\" height=\"267\" \/><\/p>\n<p>\u4ed6\u306b\u3082\u3001\u753b\u50cf\u3092\u8868\u793a\u3059\u308b image \u3084\u6587\u5b57\u3092\u8868\u793a\u3059\u308b text \u306a\u3069\u3082\u3053\u306e\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4e00\u7a2e\u3067\u3059\u3002MATLAB \u3067\u53ef\u8996\u5316\u3092\u884c\u3046\u969b\u306b\u306f\u5fc5\u305a\u4f55\u304b\u3057\u3089\u306e\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f7f\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3055\u3066\u3001\u305d\u308c\u3067\u306f\u4eca\u30d7\u30ed\u30c3\u30c8\u3057\u305f\u30b0\u30e9\u30d5\u306b\u5bfe\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u64cd\u4f5c\u3092\u884c\u304a\u3046\u3068\u3057\u305f\u5834\u5408\u3001\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<ul>\n<li>\u30b0\u30e9\u30d5\u306e\u7dda\u306e\u592a\u3055\u3084\u8272\u3092\u5909\u3048\u308b<\/li>\n<li>\u7279\u5b9a\u306e\u30b0\u30e9\u30d5\u3060\u3051\u6d88\u3059<\/li>\n<li>\u30b0\u30e9\u30d5\u306b\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3059\u308b<\/li>\n<\/ul>\n<p>\u3082\u3061\u308d\u3093\u3001\u30d7\u30ed\u30c3\u30c8\u3059\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u76f4\u3057\u3066\u3082\u3046\u4e00\u5ea6\u30d7\u30ed\u30c3\u30c8\u3059\u308b\u3001\u3068\u3044\u3063\u305f\u89e3\u6c7a\u65b9\u6cd5\u3082\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001<span style=\"color: #ff0000\"><strong>\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u6271\u3044\u65b9\u304c\u308f\u304b\u3063\u3066\u3044\u308b\u3068\u3001\u3082\u3063\u3068\u30b9\u30de\u30fc\u30c8\u306a\u3084\u308a\u65b9\u3067\u53ef\u8996\u5316\u7d50\u679c\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff01<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<h1 id=\"2\"><span style=\"color: #ff6600\">2. \u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u968e\u5c64\u69cb\u9020<\/span><\/h1>\n<p>\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u7d30\u304b\u3044\u8a71\u306b\u5165\u308b\u524d\u306b\u3001\u7c21\u5358\u306a\u30af\u30a4\u30ba\u3067\u3059\u3002\u5148\u307b\u3069 plot \u95a2\u6570\u3092\u4f7f\u3063\u3066\u30b5\u30a4\u30f3\u6ce2\u3068\u30b3\u30b5\u30a4\u30f3\u6ce2\u306e\u30b0\u30e9\u30d5\u3092\u30d7\u30ed\u30c3\u30c8\u3057\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u3068\u304d MATLAB \u4e0a\u306b\u306f\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4f55\u500b\u5b58\u5728\u3057\u3066\u3044\u308b\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-12995 size-medium\" src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2025\/03\/plotSinCos-300x267.png\" alt=\"\" width=\"300\" height=\"267\" \/><\/p>\n<p>\u2026\u2026\u2026<\/p>\n<p>\u2026\u2026<\/p>\n<p>\u2026<\/p>\n<p>\u306f\u3044\u3001\u305d\u308c\u3067\u306f\u5b9f\u969b\u306b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002findobj \u95a2\u6570\u3092\u4f7f\u3046\u3068\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30ea\u30b9\u30c8\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u306e\u3067\u3001\u8868\u793a\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre>&gt;&gt; findobj\r\n\r\nans =\r\n\r\n5\u00d71 <span style=\"color: #0000ff\">graphics<\/span> \u914d\u5217:\r\n\r\nRoot\r\nFigure (1)\r\nAxes\r\nLine\r\nLine\r\n<\/pre>\n<p>\u3053\u306e\u901a\u308a\u3001\u6b63\u89e3\u306f <strong><span style=\"color: #ff0000\">5 \u3064<\/span><\/strong>\u306b\u306a\u308a\u307e\u3059\u3002\u4e00\u898b 2 \u672c\u306e\u30b0\u30e9\u30d5\u304c\u63cf\u753b\u3055\u308c\u3066\u3044\u308b\u3060\u3051\u3067\u3059\u304c\u3001\u3053\u306e\u6642\u70b9\u3067 MATLAB \u4e0a\u306b\u306f 5 \u3064\u306e\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u3002\u4f55\u6545 5 \u3064\u3082\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4f5c\u3089\u308c\u3066\u3044\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u5b9f\u306f\u3001\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u6c7a\u3081\u3089\u308c\u305f\u968e\u5c64\u69cb\u9020\u3092\u6301\u3063\u3066\u304a\u308a\u3001\u5fc5\u305a\u3053\u306e\u69cb\u9020\u306e\u9806\u756a\u306b\u5f93\u3063\u3066\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\uff08\u53c2\u7167\uff1a<a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/graphics-objects.html?s_tid=CRUX_lftnav\">\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/a>\uff09\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"478\" height=\"392\" class=\"aligncenter size-full wp-image-13001\" src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2025\/03\/hieralchy.png\" alt=\"\" \/><\/p>\n<p>\u4eca\u56de\u306e\u5834\u5408\u30012 \u672c\u306e\u30b0\u30e9\u30d5\u306f\u4e00\u756a\u4e0b\u306e Char and Primitve Objects \u306b\u8a72\u5f53\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u305d\u306e\u4e0a\u306b Root, Figure, Axes \u304c\u4f5c\u6210\u3055\u308c\u3001\u5408\u8a08 5 \u3064\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u3067\u304d\u305f\u3001\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u305d\u308c\u305e\u308c\u3069\u306e\u3088\u3046\u306a\u5f79\u5272\u3092\u6301\u3063\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306a\u306e\u3067\u3057\u3087\u3046\u304b\uff1f\u9806\u756a\u306b\u78ba\u8a8d\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>Root \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/h2>\n<p>Root \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3001\u3059\u3079\u3066\u306e\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5927\u5143\u3068\u306a\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3001MATLAB \u3092\u8d77\u52d5\u3057\u305f\u6642\u70b9\u3067\u81ea\u52d5\u7684\u306b\uff11\u3064\u3060\u3051\u4f5c\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002<a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/ref\/groot.html\">groot<\/a> \u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u3053\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>&gt;&gt; groot()\r\n\r\nans =\r\n\r\nGraphics <span style=\"color: #0000ff\">Root<\/span> \u306e\u30d7\u30ed\u30d1\u30c6\u30a3:\r\n\r\nCurrentFigure: [1\u00d71 Figure]\r\nScreenPixelsPerInch: 96\r\nScreenSize: [1 1 **** ****]\r\nMonitorPositions: [2\u00d74 double]\r\nUnits: 'pixels'\r\n<\/pre>\n<p>\u30b9\u30af\u30ea\u30fc\u30f3\u3084\u30e2\u30cb\u30bf\u30fc\u306b\u95a2\u3059\u308b\u60c5\u5831\u304c\u5165\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u306d\u3002\u3059\u3079\u3066\u306e\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3053\u306e Root \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4e0b\u306b\u5c5e\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>Figure (UI Figure) \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/h2>\n<p>\u30b0\u30e9\u30d5\u3084\u753b\u50cf\u306a\u3069\u3092\u63cf\u753b\u3059\u308b\u969b\u306b\u4f5c\u3089\u308c\u308b Figure \u30a6\u30a3\u30f3\u30c9\u30a6\uff08\u30a2\u30d7\u30ea\u306e\u5834\u5408\u306f UI Figure\uff09\u3067\u3059\u3002\u5358\u72ec\u3067\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001<a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/figure.html\">figure<\/a> (<a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/uifigure.html\">uifigure<\/a>) \u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre>&gt;&gt; figure()\r\n<\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-13004 size-medium alignnone\" src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2025\/03\/figure-300x267.png\" alt=\"\" width=\"300\" height=\"267\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Axes (UI Axes) \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/h2>\n<p>Figure (UI Figure) \u30a6\u30a3\u30f3\u30c9\u30a6\u4e0a\u306b\u63cf\u753b\u3055\u308c\u308b\u5ea7\u6a19\u8ef8\u3067\u3059\u3002\u5358\u72ec\u3067\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001<a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/ref\/axes.html\">axes<\/a> (<a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/ref\/uiaxes.html\">uiaxes<\/a>) \u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre>&gt;&gt; axes()\r\n<\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-13007 size-medium\" src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2025\/03\/axes-300x267.png\" alt=\"\" width=\"300\" height=\"267\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Chart &amp; Primitive \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/h2>\n<p><a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/ref\/plot.html\">plot<\/a> \u95a2\u6570\u3084 <a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/image.html\">image<\/a> \u95a2\u6570\u306a\u3069\u3067\u63cf\u753b\u3055\u308c\u308b\u3001\u30b0\u30e9\u30d5\u3084\u6587\u5b57\u5217\u3001\u56f3\u5f62\u3001\u753b\u50cf\u306a\u3069\u3092\u6307\u3057\u307e\u3059\u3002<\/p>\n<pre>t = 0:0.1:10;\r\ny = sin(t);\r\nplot(t, y)\r\n<\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"300\" height=\"267\" class=\"alignnone size-medium wp-image-13013\" src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2025\/03\/plot-300x267.png\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u306f\u6c7a\u3081\u3089\u308c\u305f\u69cb\u9020\u304c\u3042\u308a\u3001\u305d\u308c\u305e\u308c\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u56fa\u6709\u306e\u5f79\u5272\u3092\u6301\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"878\" class=\"alignnone size-large wp-image-13019\" src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2025\/03\/graphic3DBG-1024x878.png\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<h1 id=\"3\"><span style=\"color: #ff6600\">3. \u30cf\u30f3\u30c9\u30eb\u3068\u30d7\u30ed\u30d1\u30c6\u30a3<\/span><\/h1>\n<p>\u305d\u308c\u3067\u306f\u3001\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u69cb\u6210\u306b\u3064\u3044\u3066\u306a\u3093\u3068\u306a\u304f\u308f\u304b\u3063\u3066\u304d\u305f\u3068\u3053\u308d\u3067\u3001\u6b21\u306f\u4f5c\u6210\u3057\u305f\u5404\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u78ba\u8a8d\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u57fa\u672c\u7684\u306b\u3001\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u60c5\u5831\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u305d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e <strong>&#8220;\u30cf\u30f3\u30c9\u30eb&#8221;<\/strong> \u304c\u5fc5\u8981\u3067\u3059\u3002\u30cf\u30f3\u30c9\u30eb\u3068\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53c2\u7167\u3059\u308b\u305f\u3081\u306e\u5909\u6570\u306e\u3053\u3068\u3067\u3001\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5834\u5408\u306f figure , axes, plot \u306a\u3069\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u95a2\u6570\u306e\u51fa\u529b\u3068\u3057\u3066\u8fd4\u3063\u3066\u304f\u308b\u5909\u6570\u3067\u3059\u3002\u30cf\u30f3\u30c9\u30eb\u81ea\u4f53\u306f\u77e5\u3089\u306a\u3044\u65b9\u3067\u3082\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u898b\u305f\u3053\u3068\u3042\u308b\u65b9\u306f\u7d50\u69cb\u591a\u3044\u3093\u3058\u3083\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<pre>&gt;&gt; p = plot(t,y)\r\n\r\np =\r\n\r\n<span style=\"color: #0000ff\">Line<\/span> \u306e\u30d7\u30ed\u30d1\u30c6\u30a3:\r\n\r\nColor: [0 0.4470 0.7410]\r\nLineStyle: '-'\r\nLineWidth: 0.5000\r\nMarker: 'none'\r\nMarkerSize: 6\r\nMarkerFaceColor: 'none'\r\nXData: [0 \u2026 ] (1\u00d7101 double)\r\nYData: [0 \u2026 ] (1\u00d7101 double)\r\n<\/pre>\n<p><span style=\"color: #ff0000\">\u3053\u306e\u30cf\u30f3\u30c9\u30eb\u5909\u6570\u3092\u4f7f\u3046\u3068\u3001\u5404\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u60c5\u5831\uff08\u30d7\u30ed\u30d1\u30c6\u30a3\uff09\u3092\u53d6\u5f97\u30fb\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059<\/span>\u3002\u4f8b\u3048\u3070\u3001\u5148\u307b\u3069\u30d7\u30ed\u30c3\u30c8\u3057\u305f\u30b0\u30e9\u30d5\u306e\u30e9\u30a4\u30f3\u306e\u5e45\u3092\u5909\u3048\u305f\u3051\u308c\u3070\u3001\u4e0a\u8a18\u306e LineWidth \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5909\u66f4\u3057\u307e\u3059\u3002\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306b\u306f\u3001\u30c9\u30c3\u30c8\u8868\u8a18\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre>&gt;&gt; p.LineWidth = 2; <span style=\"color: #008000\">% \u30e9\u30a4\u30f3\u306e\u5e45\u3092 2 \u306b\u5909\u66f4<\/span><\/pre>\n<p>\u307e\u305f\u306f <a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/ref\/get.html\">get<\/a>\/<a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/set.html\">set<\/a> \u95a2\u6570\u3092\u4f7f\u3063\u3066\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u53d6\u5f97\u30fb\u5909\u66f4\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>&gt;&gt; set(p, \"LineWidth\", 2);\r\n<\/pre>\n<p>delete \u95a2\u6570\u306b\u30cf\u30f3\u30c9\u30eb\u6e21\u3059\u3053\u3068\u3067\u3001\u305d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>&gt;&gt; delete(p); <span style=\"color: #008000\">% \u30e9\u30a4\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u524a\u9664\r\n<\/span><\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001<span style=\"color: #ff0000\">\u3042\u3089\u304b\u3058\u3081\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u4f5c\u6210\u6642\u306b\u30cf\u30f3\u30c9\u30eb\u5909\u6570\u3092\u4f5c\u3063\u3066\u304a\u3051\u3070\u3001\u305d\u308c\u4ee5\u964d\u306e\u30b3\u30fc\u30c9\u3067\u7c21\u5358\u306b\u5404\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u60c5\u5831\u3092\u53d6\u5f97\u30fb\u5909\u66f4\u3067\u304d\u308b<\/span>\u306e\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u305f\u3060\u3057\u3001\u30cf\u30f3\u30c9\u30eb\u5909\u6570\u3092\u4f7f\u3046\u4e0a\u3067\u306e\u6ce8\u610f\u70b9\u3068\u3057\u3066\u3001\u30cf\u30f3\u30c9\u30eb\u5909\u6570\u306f\u3042\u304f\u307e\u3067\u3082\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53c2\u7167\u3057\u3066\u3044\u308b\u3060\u3051\u306e\u5909\u6570\u3067\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u305d\u306e\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u3001\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306b<span style=\"color: #ff0000\">\u30cf\u30f3\u30c9\u30eb\u5909\u6570\u3092\u30b3\u30d4\u30fc\u30fb\u30af\u30ea\u30a2\u3057\u3066\u3082\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u81ea\u4f53\u306f\u8907\u88fd\u30fb\u524a\u9664\u3055\u308c\u307e\u305b\u3093<\/span>\u3002\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3092\u30b3\u30d4\u30fc\u30fb\u524a\u9664\u3057\u3066\u3082\u5143\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u30b3\u30d4\u30fc\u30fb\u524a\u9664\u3055\u308c\u306a\u3044\u306e\u3068\u540c\u3058\u3067\u3059\u306d\u3002<\/p>\n<pre>&gt;&gt; p2 = p; <span style=\"color: #008000\">% \u53c2\u7167\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3082\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u30b3\u30d4\u30fc\u3055\u308c\u306a\u3044<\/span>\r\n&gt;&gt; clear p <span style=\"color: #008000\">% \u53c2\u7167\u3092\u30af\u30ea\u30a2\u3057\u3066\u3082\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u524a\u9664\u3055\u308c\u306a\u3044\r\n<\/span><\/pre>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #000000\">\uff08\u88dc\u8db3\uff09\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u8abf\u3079\u65b9<\/span><\/h2>\n<p>\u524d\u8ff0\u306e\u901a\u308a\u3001\u30cf\u30f3\u30c9\u30eb\u5909\u6570\u3068\u30d7\u30ed\u30d1\u30c6\u30a3\u540d\u3055\u3048\u308f\u304b\u308c\u3070\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u60c5\u5831\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u304c\u3001\u3082\u3057\u30d7\u30ed\u30d1\u30c6\u30a3\u540d\u304c\u308f\u304b\u3089\u306a\u3044\u5834\u5408\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p><span style=\"color: #ff0000\">\u5404\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4e00\u89a7\u306f\u3001\u201d\u25cb\u25cb\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u201d \u3068\u3044\u3046\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059<\/span>\u3002\u4f8b\u3048\u3070\u3001Figure \u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306f <a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/ref\/matlab.ui.figure-properties.html\">Figure \u306e\u30d7\u30ed\u30d1\u30c6\u30a3<\/a>\u306b\u8f09\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u5404\u95a2\u6570\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u6700\u4e0b\u90e8\u306e\u30ea\u30f3\u30af\u304b\u3089\u3082\u958b\u3051\u308b\u306e\u3067\u3001\u305c\u3072\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"1336\" height=\"376\" class=\"alignnone size-full wp-image-13022\" src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2025\/03\/bottomDoc.png\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<h1 id=\"4\"><span style=\"color: #ff6600\">4. \u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u691c\u7d22<\/span><\/h1>\n<p>\u524d\u7bc0\u306e\u3068\u304a\u308a\u3001\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u30cf\u30f3\u30c9\u30eb\u5909\u6570\u3092\u5b9a\u7fa9\u3057\u3066\u304a\u3051\u3070\u3001\u305d\u308c\u3092\u4f7f\u3063\u3066\u81ea\u7531\u306b\u60c5\u5831\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3057\u305f\u3002\u305d\u308c\u3067\u306f\u3001\u3082\u3057\u30cf\u30f3\u30c9\u30eb\u5909\u6570\u3092\u5b9a\u7fa9\u305b\u305a\u306b\u4f5c\u6210\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3084\u81ea\u52d5\u3067\u4f5c\u3089\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3044\u5834\u5408\u306f\u3069\u3046\u3059\u308c\u3070\u3088\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u691c\u7d22\u3059\u308b\u6a5f\u80fd\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u7279\u5b9a\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30cf\u30f3\u30c9\u30eb\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2><strong>\u30fb\u73fe\u5728\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u691c\u7d22\uff08<a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/gcf.html\">gcf<\/a>, <a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/ref\/gca.html\">gca<\/a>, <a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/ref\/gco.html?requestedDomain=\">gco<\/a> \u95a2\u6570\uff09<\/strong><\/h2>\n<p>gc \u304b\u3089\u59cb\u307e\u308b\u95a2\u6570\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u6700\u5f8c\u306b\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u306a\u3063\u305f\uff08\u30af\u30ea\u30c3\u30af\u3084\u30ad\u30fc\u30dc\u30fc\u30c9\u64cd\u4f5c\u3067\u9078\u629e\u3055\u308c\u305f\uff09\u7279\u5b9a\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>gcf: Figure<\/li>\n<li>gca: Axes<\/li>\n<li>gco: \u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/li>\n<\/ul>\n<p>\u7279\u306b\u3001Figure \u3084 Axes \u306f\u81ea\u52d5\u3067\u4f5c\u3089\u308c\u308b\u3053\u3068\u304c\u591a\u3044\u306e\u3067\u3001gcf, gca\u3092\u4f7f\u3063\u3066\u30a2\u30af\u30bb\u30b9\u3059\u308b\u983b\u5ea6\u304c\u9ad8\u3044\u3067\u3059\u3002<\/p>\n<pre>&gt;&gt; set(gcf, <span style=\"color: #800080\">\"Position\"<\/span>, [0 0 100 100]); <span style=\"color: #008000\">% Figure \u306e\u4f4d\u7f6e\u3092\u5909\u66f4\r\n<\/span><\/pre>\n<p>&nbsp;<\/p>\n<h2><strong>\u30fb\u7279\u5b9a\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u5024\u3092\u6301\u3064\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u691c\u7d22\uff08<a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/findobj.html\">findobj<\/a> \u95a2\u6570\uff09<\/strong><\/h2>\n<p>findobj \u95a2\u6570\u3092\u4f7f\u3046\u3068\u3001\u7279\u5b9a\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u5024\u3092\u6301\u3064\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u691c\u7d22\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>&gt;&gt; p = findobj(<span style=\"color: #800080\">\"LineWidth\"<\/span>,2)\r\n\r\np =\r\n\r\n<span style=\"color: #0000ff\">Line<\/span> \u306e\u30d7\u30ed\u30d1\u30c6\u30a3:\r\n\r\nColor: [0 0.4470 0.7410]\r\nLineStyle: '-'\r\nLineWidth: 2\r\nMarker: 'none'\r\nMarkerSize: 6\r\nMarkerFaceColor: 'none'\r\nXData: [0 \u2026 ] (1\u00d7101 double)\r\nYData: [0 \u2026 ] (1\u00d7101 double)\r\n<\/pre>\n<p>\u7279\u306b\u3001<span style=\"color: #ff0000\">\u5404\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e Type \u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u306f\u305d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u7a2e\u985e\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b<\/span>\u306e\u3067\u3001\u3053\u308c\u3092\u4f7f\u3048\u3070\u7279\u5b9a\u306e\u7a2e\u985e\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3060\u3051\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre>&gt;&gt; p = findobj(<span style=\"color: #800080\">\"Type\"<\/span>,<span style=\"color: #800080\">\"Line\"<\/span>) <span style=\"color: #008000\">% Line \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3060\u3051\u53d6\u5f97\r\n<\/span><\/pre>\n<p>\u307e\u305f\u3001\u5404\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u306f\u5171\u901a\u3057\u3066 UserData \u3068\u3044\u3046\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u7528\u610f\u3055\u308c\u3066\u304a\u308a\u3001\u597d\u304d\u306a\u5024\u3092\u5165\u308c\u3066\u304a\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u3053\u3053\u306b\u30bf\u30b0\u306e\u3088\u3046\u306a\u3082\u306e\u3092\u4ed5\u8fbc\u3093\u3067\u304a\u3051\u3070\u3001\u5f8c\u3005\u7279\u5b9a\u306e\u30bf\u30b0\u3092\u3064\u3051\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3060\u3051\u3092\u691c\u7d22\u3057\u3066\u6d88\u3059\u3001\u3068\u3044\u3063\u305f\u3053\u3068\u3082\u7c21\u5358\u306b\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>objs = findobj(<span style=\"color: #800080\">\"UserData\"<\/span>, <span style=\"color: #800080\">\"Group1\"<\/span>);\r\ndelete(objs)\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h1 id=\"5\"><span style=\"color: #ff6600\">5. \u5fdc\u7528\u4f8b<\/span><\/h1>\n<p>\u6700\u5f8c\u306b\u3001\u3053\u308c\u3089\u306e\u6a5f\u80fd\u3092\u4f7f\u3046\u3068\u3069\u3093\u306a\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u304b\u3001\u3044\u304f\u3064\u304b\u4ee3\u8868\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2>\u2460\u53ef\u8996\u5316\u30a2\u30d7\u30ea<\/h2>\n<p>\u30c7\u30fc\u30bf\u306e\u53ef\u8996\u5316\u30a2\u30d7\u30ea\u3067\u306f\u3001\u30b0\u30e9\u30d5\u306e\u8868\u793a\u30fb\u975e\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u305f\u308a\u3001\u8272\u3092\u5909\u3048\u305f\u308a\u3001\u65b0\u305f\u306a\u53ef\u8996\u5316\u3092\u884c\u3063\u305f\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u64cd\u4f5c\u306b\u5fdc\u3058\u3066\u30b0\u30e9\u30d5\u30a3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u64cd\u4f5c\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u5834\u5408\u3001\u30cf\u30f3\u30c9\u30eb\u5909\u6570\u304c\u975e\u5e38\u306b\u91cd\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"964\" height=\"767\" class=\"alignnone size-full wp-image-13040\" src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2025\/03\/visualizeAppSS.png\" alt=\"\" \/><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-13043 size-large\" src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2025\/03\/visualizeAppCode-947x1024.png\" alt=\"\" width=\"947\" height=\"1024\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>\u2461\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3<\/h2>\n<p>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u3001\u4e00\u5b9a\u6642\u9593\u6bce\u306b\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u53d6\u5f97\u30fb\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u8272\u304c\u5909\u308f\u308a\u306a\u304c\u3089\u5f90\u3005\u306b\u30c7\u30fc\u30bf\u304c\u5897\u3048\u3066\u3044\u304f\u30d7\u30ed\u30c3\u30c8\u3092\u4f5c\u308b\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>axis([0 10 -1 1])                  <span style=\"color: #008000\">% \u5ea7\u6a19\u8ef8\u306e\u7bc4\u56f2\u3092\u4e8b\u524d\u306b\u8a2d\u5b9a<\/span>\r\nh = animatedline;                  <span style=\"color: #008000\">% AnimatedLine \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210<\/span>\r\nts = 0.1;                          <span style=\"color: #008000\">% 0.1\u79d2\u5468\u671f\u3067\u66f4\u65b0<\/span>\r\ntime = 10;                         <span style=\"color: #008000\">% 10\u79d2\u9593<\/span>\r\nt = 0:ts:time;                     <span style=\"color: #008000\">% \u6a2a\u8ef8\u30c7\u30fc\u30bf<\/span>\r\ny = sin(t);                        <span style=\"color: #008000\">% \u7e26\u8ef8\u30c7\u30fc\u30bf<\/span>\r\nred = 1\/2*sin(t)+1\/2;              <span style=\"color: #008000\">% \u8d64\u3092 0\uff5e1 \u3067\u5909\u5316<\/span>\r\ngreen = 1-red;                     <span style=\"color: #008000\">% \u7dd1\u3092\u8d64\u3068\u9006\u306b\u5909\u5316<\/span>\r\n<span style=\"color: #0000ff\">for<\/span> i = 1:length(t)\r\n    addpoints(h,t(i),y(i));        <span style=\"color: #008000\">% \u30c7\u30fc\u30bf\u3092\u8ffd\u52a0<\/span>\r\n    h.Color = [red(i) green(i) 0]; <span style=\"color: #008000\">% \u8272\u3092\u5909\u66f4<\/span>\r\n    pause(ts);                     <span style=\"color: #008000\">% ts\u79d2\u5f85\u6a5f<\/span>\r\n<span style=\"color: #0000ff\">end\r\n<\/span><\/pre>\n<p><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/animatedline.html\">animatedline<\/a> \u95a2\u6570\u3067 AnimatedLine \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308a\u3001\u30eb\u30fc\u30d7\u306e\u4e2d\u3067 <a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/ref\/addpoints.html\">addpoints<\/a> \u95a2\u6570\u3067\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3001Color \u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5909\u66f4\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"844\" height=\"752\" class=\"alignnone size-full wp-image-13049\" src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2025\/03\/animatedline.gif\" alt=\"\" \/><\/p>\n<p>\u8272\u3092\u5909\u5316\u3055\u305b\u306a\u304c\u3089\u30a6\u30cd\u30a6\u30cd\u52d5\u304f\u30d7\u30ed\u30c3\u30c8<s>\uff08\u30b2\u30fc\u30df\u30f3\u30b0\u30d7\u30ed\u30c3\u30c8\uff09<\/s>\u304c\u3067\u304d\u307e\u3057\u305f\uff01<\/p>\n<p>&nbsp;<\/p>\n<h2>\u2462\u5927\u91cf\u306e Figure \u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u7ba1\u7406<\/h2>\n<p>\u5927\u91cf\u306e Figure \u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u7ba1\u7406\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u5834\u5408\u3082\u3001\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u77e5\u8b58\u304c\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<pre>rt = groot;                      <span style=\"color: #008000\">% Root \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30af\u30bb\u30b9<\/span>\r\nsc = rt.ScreenSize;              <span style=\"color: #008000\">% \u30b9\u30af\u30ea\u30fc\u30f3\u30b5\u30a4\u30ba\u3092\u53d6\u5f97<\/span>\r\nscw = sc(3);                     <span style=\"color: #008000\">% \u30b9\u30af\u30ea\u30fc\u30f3\u306e\u5e45\u3092\u53d6\u5f97<\/span>\r\nsch = sc(4);                     <span style=\"color: #008000\">% \u30b9\u30af\u30ea\u30fc\u30f3\u306e\u9ad8\u3055\u3092\u53d6\u5f97<\/span>\r\nw = scw\/5;                       <span style=\"color: #008000\">% Figure \u306e\u5e45\u306f\u30b9\u30af\u30ea\u30fc\u30f3\u306e5\u5206\u306e1<\/span>\r\nh = sch\/2;                       <span style=\"color: #008000\">% Figure \u306e\u9ad8\u3055\u306f\u30b9\u30af\u30ea\u30fc\u30f3\u306e2\u5206\u306e1<\/span>\r\nt = 0:0.1:10;                    <span style=\"color: #008000\">% \u6a2a\u8ef8\u30c7\u30fc\u30bf\uff08\u5171\u901a\uff09<\/span>\r\n<span style=\"color: #0000ff\">for<\/span> i = 1:10\r\n    f = figure;                  <span style=\"color: #008000\">% \u65b0\u3057\u3044 Figure \u3092\u4f5c\u6210<\/span>\r\n    x = w*mod((i-1),5);          <span style=\"color: #008000\">% Figure \u306e\u6a2a\u306e\u4f4d\u7f6e\u3092\u8a08\u7b97<\/span>\r\n    y = h*floor((i-1)\/5);        <span style=\"color: #008000\">% Figure \u306e\u7e26\u306e\u4f4d\u7f6e\u3092\u8a08\u7b97<\/span>\r\n    f.OuterPosition = [x y w h]; <span style=\"color: #008000\">% Figure \u306e\u4f4d\u7f6e\u3092\u8a2d\u5b9a<\/span>\r\n    y = sin(i*t);                <span style=\"color: #008000\">% \u7e26\u8ef8\u30c7\u30fc\u30bf<\/span>\r\n    plot(t,y)                    <span style=\"color: #008000\">% \u30d7\u30ed\u30c3\u30c8<\/span>\r\n<span style=\"color: #0000ff\">end<\/span><\/pre>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"1920\" height=\"1200\" class=\"alignnone size-full wp-image-13037\" src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2025\/03\/alotofplot-1.png\" alt=\"\" \/><\/p>\n<p>\u203b\u3053\u306e\u4f8b\u306e\u3088\u3046\u306b Figure \u3092\u5206\u3051\u308b\u5fc5\u8981\u304c\u306a\u3044\u5834\u5408\u306f\u30011 \u3064\u306e Figure \u4e0a\u306b <a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/ref\/tiledlayout.html\">tiledlayout<\/a> \u95a2\u6570\u3067\u8907\u6570\u30b0\u30e9\u30d5\u3092\u30d7\u30ed\u30c3\u30c8\u3059\u308b\u65b9\u304c\u7ba1\u7406\u3082\u3057\u3084\u3059\u304f\u3066\u30aa\u30b9\u30b9\u30e1\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h1 id=\"6\"><span style=\"color: #ff6600\">6. \u307e\u3068\u3081<\/span><\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f MATLAB \u306e\u53ef\u8996\u5316\u3092\u88cf\u3067\u652f\u3048\u3066\u3044\u308b\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3064\u3044\u3066\u306e\u6280\u8853\u8a18\u4e8b\u3067\u3057\u305f\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u4e00\u90e8\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3060\u3051\u306e\u7d39\u4ecb\u3067\u3057\u305f\u304c\u3001MATLAB \u306b\u306f\u69d8\u3005\u306a\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5b58\u5728\u3057\u307e\u3059\u3002\u666e\u6bb5\u3088\u304f\u4f7f\u3046\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u4e00\u89a7\u3092\u898b\u308b\u3060\u3051\u3067\u3082\u65b0\u3057\u3044\u767a\u898b\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306e\u3067\u3001\u305c\u3072\u8272\u3005\u8abf\u3079\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<p>\u3046\u307e\u304f\u6d3b\u7528\u3059\u308c\u3070\u3001\u30b2\u30fc\u30e0\u3060\u3063\u3066\u4f5c\u308c\u3061\u3083\u3046\u304b\u3082\u2026\u2026\uff1f<\/p>\n<p>&nbsp;<\/p>\n<h1><span style=\"color: #ff6600\">\uff08\u304a\u307e\u3051\uff09<\/span><\/h1>\n<p><a href=\"https:\/\/jp.mathworks.com\/matlabcentral\/fileexchange\/71068-supermatlabros?s_tid=FX_rc3_behav\">\u4f5c\u308c\u3061\u3083\u3063\u305f\u4f8b<\/a><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"1203\" height=\"1022\" class=\"alignnone size-full wp-image-13085\" src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2025\/03\/Game.png\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img decoding=\"async\"  class=\"img-responsive\" src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2025\/03\/plotSinCos-300x267.png\" onError=\"this.style.display ='none';\" \/><\/div>\n<p>\u7686\u3055\u3093\u3053\u3093\u306b\u3061\u306f\u3001\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u30c1\u30fc\u30e0\u306e\u9060\u85e4\u3067\u3059\u3002<br \/>\n\u6628\u5e74\u672b\u30b2\u30fc\u30df\u30f3\u30b0 PC \u3092\u8cb7\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u4eca\u307e\u3067\u30b9\u30da\u30c3\u30af\u30ae\u30ea\u30ae\u30ea\u3067\u52d5\u3044\u3066\u3044\u305f\u30b2\u30fc\u30e0\u304c\u30b5\u30af\u30b5\u30af\u52d5\u304f\u306e\u3067\u3001\u6065\u305a\u304b\u3057\u306a\u304c\u3089\u6700\u8fd1\u306f\u30b2\u30fc\u30e0\u4e09\u6627\u306e\u81ea\u5815\u843d\u306a\u751f\u6d3b\u3092\u9001\u3063\u3066\u3044\u307e\u3059\u3002\u6700\u8fd1\u306e\u30b2\u30fc\u30e0\u306f\u3069\u308c\u3082\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u304c\u30ad\u30ec\u30a4\u306a\u306e\u3067\u3001\u30b2\u30fc\u30e0\u306e\u4e16\u754c\u306b\u5165\u308a\u8fbc\u3093\u3067\u3044\u308b\u3088\u3046\u306a\u611f\u899a\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3088\u306d\u2026\u2026\u3002<br \/>\n\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u300c\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u300d\u7e4b\u304c\u308a\u3067\u3001MATLAB&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/japan-community\/2025\/03\/17\/basis_of_graphics_object\/\">read more >><\/a><\/p>\n","protected":false},"author":169,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,61],"tags":[185,67],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/posts\/12977"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/users\/169"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/comments?post=12977"}],"version-history":[{"count":36,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/posts\/12977\/revisions"}],"predecessor-version":[{"id":13127,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/posts\/12977\/revisions\/13127"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/media?parent=12977"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/categories?post=12977"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/tags?post=12977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}