{"id":14239,"date":"2025-12-03T12:40:42","date_gmt":"2025-12-03T03:40:42","guid":{"rendered":"https:\/\/blogs.mathworks.com\/japan-community\/?p=14239"},"modified":"2025-12-03T12:40:42","modified_gmt":"2025-12-03T03:40:42","slug":"matlab_string_text_processing","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/japan-community\/2025\/12\/03\/matlab_string_text_processing\/","title":{"rendered":"MATLAB \u3067\u6587\u5b57\u5217\u51e6\u7406\u3001string \u578b\u306e\u30b9\u30b9\u30e1\uff01"},"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\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001\u300cMATLAB \u3068 Simulink \u3092\u7e4b\u3050\u300d\u3092\u30c6\u30fc\u30de\u306b\u3001\u4e3b\u306b\u6280\u8853\u7684\u306a\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6700\u8fd1\u3081\u3063\u304d\u308a\u5bd2\u304f\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u306d\u3002\u79c1\u306f\u81ea\u5b85\u304b\u3089\u6700\u5bc4\u308a\u99c5\u307e\u3067 15 \u5206\u6b69\u304b\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\u306e\u3067\u3001\u6bce\u65e5\u5bd2\u3055\u306b\u8010\u3048\u306a\u304c\u3089\u5e30\u308a\u3001\u81ea\u5ba4\u306e PC \u306e GPU \u3067\u6696\u3092\u53d6\u308b\u65e5\u3005\u304c\u7d9a\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3068\u3001\u305d\u3093\u306a\u5197\u8ac7\u306f\u7f6e\u3044\u3066\u304a\u3044\u3066\u3001\u4eca\u56de\u306f\u4e45\u3005\u306b\u6280\u8853\u8a18\u4e8b\u306e\u57f7\u7b46\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u5c11\u3057 MATLAB \u306b\u5bc4\u3063\u305f\u5185\u5bb9\u306b\u3064\u3044\u3066\u66f8\u3044\u3066\u3044\u3053\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u4eca\u56de\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u306f\u30ba\u30d0\u30ea\u3001\u300c\u6587\u5b57\u5217\u51e6\u7406\u300d\u3067\u3059\uff01<\/p>\n<p>&nbsp;<\/p>\n<h1><span style=\"color: #ff6600\">0. MATLAB \u3067\u6587\u5b57\u5217\u51e6\u7406<\/span><\/h1>\n<p>\u7a81\u7136\u3067\u3059\u304c MATLAB \u30af\u30a4\u30ba\u3067\u3059\uff01<\/p>\n<p>\u4eca\u3001\u3042\u306a\u305f\u306f MATLAB \u3067\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u5b9f\u884c\u3057\u3066\u304a\u308a\u3001\u5404\u30eb\u30fc\u30d7\u306e\u5b9f\u884c\u7d50\u679c\u3092 &#8220;result1.mat&#8221;, &#8220;result2.mat&#8221;, &#8230;&#8230; \u3068\u3044\u3046\u3088\u3046\u306b\u9023\u756a\u306e\u540d\u524d\u3092\u4ed8\u3051\u3066\u4fdd\u5b58\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u3044\u3063\u305f\u3044\u3069\u3093\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u3051\u3070\u3044\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"424\" class=\"alignnone size-large wp-image-14303\" src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2025\/12\/quiz2-1024x424.png\" alt=\"\" \/><\/p>\n<p>\u2026\u2026\u2026<\/p>\n<p>\u2026\u2026<\/p>\n<p>\u2026<\/p>\n<p>\u5b9f\u969b\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u307f\u308b\u3068\u3001\u9023\u756a\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u7528\u610f\u3059\u308b\u306e\u304c\u610f\u5916\u3068\u66f2\u8005\u3067\u3059\u3002\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<pre style=\"margin-bottom: 2em\"><span style=\"color: #0000ff\">for<\/span> k = 1:10\r\n    result = myFunc(k); <span style=\"color: #008000\">% \u30e1\u30a4\u30f3\u51e6\u7406<\/span>\r\n    fileName = [<span style=\"color: #ff00ff\">'result'<\/span> num2str(k) <span style=\"color: #ff00ff\">'.mat'<\/span>]; <span style=\"color: #008000\">% \u9023\u756a\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u4f5c\u6210<\/span>\r\n    save(fileName,<span style=\"color: #ff00ff\">'result'<\/span>);\r\n<span style=\"color: #0000ff\">end<\/span><\/pre>\n<p>num2str() \u95a2\u6570\u3092\u4f7f\u3063\u3066\u30eb\u30fc\u30d7\u756a\u53f7\uff08\u6570\u5024\uff09\u3092\u6587\u5b57\u5217\u306b\u76f4\u3057\u3001&#8217;result&#8217; \u3068 &#8216;.mat&#8217; \u306b\u7d50\u5408\u3059\u308b\u3053\u3068\u3067\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u4f5c\u308b\u3001\u3068\u3044\u3046\u3084\u308a\u65b9\u3067\u3059\u3002\u6570\u5024\u3068\u6587\u5b57\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3001\u5c11\u3057\u8907\u96d1\u306a\u30b3\u30fc\u30c9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u2026\u2026\u3068\u3044\u3046\u306e\u306f\u3001\u6614\u306e MATLAB \u306e\u8a71\u3002\u4eca\u306e MATLAB \u306f\u3001\u65b0\u3057\u3044\u6587\u5b57\u5217\u7528\u306e\u30c7\u30fc\u30bf\u578b\u3067\u3042\u308b <span style=\"color: #ff0000\"><strong>string \u578b<\/strong><\/span>\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u3082\u3063\u3068\u30b7\u30f3\u30d7\u30eb\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff01<\/p>\n<pre style=\"margin-bottom: 2em\"><span style=\"color: #0000ff\">for<\/span> k = 1:10\r\n    result = myFunc(k); <span style=\"color: #008000\">% \u30e1\u30a4\u30f3\u51e6\u7406<\/span>\r\n    fileName = <span style=\"color: #ff00ff\">\"result\" <\/span>+ k + <span style=\"color: #ff00ff\">\".mat\"<\/span>; <span style=\"color: #008000\">% \u9023\u756a\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u4f5c\u6210<\/span>\r\n    save(fileName,<span style=\"color: #ff00ff\">\"result\"<\/span>);\r\n<span style=\"color: #0000ff\">end<\/span><\/pre>\n<p>&#8220;result&#8221; \u3068 k \u3068 &#8220;.mat&#8221; \u3092\u8db3\u3057\u7b97\u3067\u304f\u3063\u3064\u3051\u308b\u3060\u3051\u3002\u3053\u306e\u3088\u3046\u306b\u3001string \u578b\u3092\u4f7f\u3046\u3068\u3001\u69d8\u3005\u306a\u6587\u5b57\u5217\u51e6\u7406\u3092\u76f4\u611f\u7684\u306b\u308f\u304b\u308a\u3084\u3059\u304f\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001\u3053\u306e string \u578b\u306e\u7279\u5fb4\u3084\u305d\u308c\u3092\u4f7f\u3046\u30e1\u30ea\u30c3\u30c8\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\uff01<\/p>\n<p>&nbsp;<\/p>\n<h1><span style=\"color: #ff6600\">1. string \u578b\u3068\u306f\uff1f<\/span><\/h1>\n<p>string \u578b\u306f\u3001MATLAB R2016b \u304b\u3089\u8ffd\u52a0\u3055\u308c\u305f\u3001\u6587\u5b57\u5217\u30c7\u30fc\u30bf\u3092\u6271\u3046\u305f\u3081\u306e\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u578b\u3067\u3059\u3002\u6614\u304b\u3089 MATLAB \u3092\u4f7f\u3063\u3066\u3044\u308b\u65b9\u306f\u3001\u6587\u5b57\u5217\u3068\u3044\u3048\u3070\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\uff08&#8217;\uff09\u3092\u4f7f\u3063\u305f\u300cchar \u578b\u300d\u304c\u306a\u3058\u307f\u6df1\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001string \u578b\u306f\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\uff08&#8221;\uff09\u3092\u4f7f\u3063\u3066\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre>txt1 = <span style=\"color: #ff00ff\">'\u3053\u3093\u306b\u3061\u306f'<\/span>;\r\ntxt2 = <span style=\"color: #ff00ff\">\"\u3053\u3093\u306b\u3061\u306f\"<\/span>;\r\n<\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"477\" height=\"176\" class=\"alignnone size-full wp-image-14244\" src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2025\/11\/workspace.png\" alt=\"\" \/><\/p>\n<p>\u4e2d\u8eab\u306e\u6587\u5b57\u5217\u306f\u540c\u3058\u300c\u3053\u3093\u306b\u3061\u306f\u300d\u3001\u30a8\u30c7\u30a3\u30bf\u4e0a\u306e\u898b\u305f\u76ee\u3082\u540c\u3058\u30d4\u30f3\u30af\uff08\u7d2b\uff09\u8272\u3067\u3059\u304c\u30012 \u3064\u306e\u5909\u6570\u306e\u30c7\u30fc\u30bf\u578b\u306f\u660e\u78ba\u306b\u533a\u5225\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h1><span style=\"color: #ff6600\">2. char \u578b\u3068 string \u578b\u306e\u9055\u3044<\/span><\/h1>\n<p>char \u578b\u3068 string \u578b\u306f\u3069\u3061\u3089\u3082\u6587\u5b57\u5217\u30c7\u30fc\u30bf\u3092\u6271\u3046\u30c7\u30fc\u30bf\u578b\u3067\u3001\u4f5c\u308a\u65b9\u3082\u4f3c\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u3053\u306e 2 \u3064\u306e\u30c7\u30fc\u30bf\u578b\u306e\u6027\u8cea\u306f\u5927\u304d\u304f\u3053\u3068\u306a\u308a\u307e\u3059\u3002\u308f\u304b\u308a\u3084\u3059\u3044\u3088\u3046\u306b\u3053\u306e\uff12\u3064\u306e\u30c7\u30fc\u30bf\u578b\u306e\u9055\u3044\u3092\u8868\u306b\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<table style=\"border-collapse: collapse;width: 100%;margin-bottom: 1em\">\n<thead>\n<tr>\n<th style=\"border: 1px solid black;border-bottom: 4px double black;border-right: 4px double black;padding: 4px\"><\/th>\n<th style=\"border: 1px solid black;border-bottom: 4px double black;padding: 4px\"><strong>char \u578b<\/strong><\/th>\n<th style=\"border: 1px solid black;border-bottom: 4px double black;padding: 4px\"><strong>string \u578b<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th style=\"border: 1px solid black;border-right: 4px double black;padding: 4px\">\u4f5c\u308a\u65b9<\/th>\n<td style=\"border: 1px solid black;padding: 4px\">\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3<\/td>\n<td style=\"border: 1px solid black;padding: 4px\">\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3<\/td>\n<\/tr>\n<tr>\n<th style=\"border: 1px solid black;border-right: 4px double black;padding: 4px\">\u5358\u4e00\u306e\u6587\u5b57\u5217\u306e\u6271\u3044\u65b9<\/th>\n<td style=\"border: 1px solid black;padding: 4px\">\u30d9\u30af\u30c8\u30eb<\/td>\n<td style=\"border: 1px solid black;padding: 4px\">\u30b9\u30ab\u30e9<\/td>\n<\/tr>\n<tr>\n<th style=\"border: 1px solid black;border-right: 4px double black;padding: 4px\">\u8907\u6570\u306e\u6587\u5b57\u5217\u306e\u6271\u3044\u65b9<\/th>\n<td style=\"border: 1px solid black;padding: 4px\">\u30bb\u30eb\u914d\u5217<\/td>\n<td style=\"border: 1px solid black;padding: 4px\">\u30d9\u30af\u30c8\u30eb<\/td>\n<\/tr>\n<tr>\n<th style=\"border: 1px solid black;border-right: 4px double black;padding: 4px\">\u7d50\u5408\u65b9\u6cd5<\/th>\n<td style=\"border: 1px solid black;padding: 4px\">\u30d9\u30af\u30c8\u30eb\u7d50\u5408<\/td>\n<td style=\"border: 1px solid black;padding: 4px\">\uff0b\u6f14\u7b97\u5b50<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4f5c\u308a\u65b9\u306b\u3064\u3044\u3066\u306f\u65e2\u306b\u8aac\u660e\u3057\u305f\u901a\u308a\u3067\u3059\u306e\u3067\u3001\u305d\u308c\u4ee5\u5916\u306e\u70b9\u306b\u3064\u3044\u3066\u7c21\u5358\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #ff6600\">\u2460\u5358\u4e00\u306e\u6587\u5b57\u5217\u306e\u6271\u3044\u65b9<\/span><\/h2>\n<p>\u5148\u307b\u3069\u4f5c\u3063\u305f txt1, txt2 \u306e\u30b5\u30a4\u30ba\u3092 length \u95a2\u6570\u3067\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre style=\"margin-bottom: 2em\">&gt;&gt; length(txt1)\r\n\r\nans =\r\n\r\n     5\r\n\r\n&gt;&gt; length(txt2)\r\n\r\nans =\r\n\r\n     1\r\n<\/pre>\n<p>txt1 \u306f 5\u3001txt2 \u306f 1 \u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002char \u578b\u306f\u6587\u5b57\u5217\u3092\u300c\u6587\u5b57\u304c\u7d50\u5408\u3057\u305f\u30d9\u30af\u30c8\u30eb\u300d\u3068\u3057\u3066\u6271\u3044\u3001string \u578b\u306f\u300c\uff11\u3064\u306e\u307e\u3068\u307e\u3063\u305f\u6587\u5b57\u5217\u300d\u3068\u3057\u3066\u6271\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #ff6600\">\u2461\u8907\u6570\u306e\u6587\u5b57\u5217\u306e\u6271\u3044\u65b9<\/span><\/h2>\n<p>char \u578b\u3067\u8907\u6570\u306e\u6587\u5b57\u5217\u3092\u307e\u3068\u3081\u308b\u5834\u5408\u3001\u30bb\u30eb\u914d\u5217\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre style=\"margin-bottom: 2em\">&gt;&gt; txts1 = {<span style=\"color: #ff00ff\">'\u3053\u3093\u306b\u3061\u306f'<\/span>,<span style=\"color: #ff00ff\">'\u304a\u5143\u6c17\u3067\u3059\u304b\uff1f'<\/span>}\r\n\r\ntxts1 =\r\n\r\n  1\u00d72 \u306e <span style=\"color: #0000ff\">cell<\/span> \u914d\u5217\r\n\r\n    {'\u3053\u3093\u306b\u3061\u306f'}    {'\u304a\u5143\u6c17\u3067\u3059\u304b\uff1f'}\r\n<\/pre>\n<p>\u305d\u308c\u306b\u5bfe\u3057\u3001string \u578b\u306f\u30d9\u30af\u30c8\u30eb\uff08string \u914d\u5217\uff09\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre style=\"margin-bottom: 2em\">&gt;&gt; txts2 = [<span style=\"color: #ff00ff\">\"\u3053\u3093\u306b\u3061\u306f\"<\/span>,<span style=\"color: #ff00ff\">\"\u304a\u5143\u6c17\u3067\u3059\u304b\uff1f\"<\/span>]\r\n\r\ntxts2 = \r\n\r\n  1\u00d72 \u306e <span style=\"color: #0000ff\">string<\/span> \u914d\u5217\r\n\r\n    \"\u3053\u3093\u306b\u3061\u306f\"    \"\u304a\u5143\u6c17\u3067\u3059\u304b\uff1f\"\r\n<\/pre>\n<p>\u30bb\u30eb\u914d\u5217\u306f\u8272\u3005\u306a\u30c7\u30fc\u30bf\u3092\uff11\u3064\u306b\u307e\u3068\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u3066\u4fbf\u5229\u306a\u53cd\u9762\u3001\u30d9\u30af\u30c8\u30eb\u306b\u6bd4\u3079\u3066\u6f14\u7b97\u304c\u3057\u3065\u3089\u3044\u3068\u3044\u3046\u6b20\u70b9\u304c\u3042\u308a\u3001\u30d9\u30af\u30c8\u30eb\u3068\u3057\u3066\u7ba1\u7406\u3067\u304d\u308b\u3068\u3044\u3046\u70b9\u306f\u660e\u78ba\u306a\u30e1\u30ea\u30c3\u30c8\u3068\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u70b9\u306b\u3064\u3044\u3066\u306f\u3001\u6b21\u7bc0\u306e\u300cstring \u578b\u306e\u30e1\u30ea\u30c3\u30c8\u300d\u3067\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #ff6600\">\u2462\u7d50\u5408\u65b9\u6cd5<\/span><\/h2>\n<p>char \u578b\u306f\u6587\u5b57\u5217\u3092\u30d9\u30af\u30c8\u30eb\u3068\u3057\u3066\u6271\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u6587\u5b57\u5217\u540c\u58eb\u3092\u7d50\u5408\u3059\u308b\u5834\u5408\u3001\u901a\u5e38\u306e\u30d9\u30af\u30c8\u30eb\u3068\u540c\u69d8\u306b\u3001\u5927\u304b\u3063\u3053\u3092\u4f7f\u3063\u3066\u7d50\u5408\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre style=\"margin-bottom: 2em\">&gt;&gt; txt1 = [<span style=\"color: #ff00ff\">'MAT'<\/span> <span style=\"color: #ff00ff\">'LAB'<\/span>]\r\n\r\ntxt1 =\r\n\r\n    'MATLAB'\r\n<\/pre>\n<p>\u305d\u308c\u306b\u5bfe\u3057\u3001string \u578b\u306f + \u6f14\u7b97\u5b50\u3067\u7d50\u5408\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre style=\"margin-bottom: 2em\">&gt;&gt; txt2 = <span style=\"color: #ff00ff\">\"MAT\"<\/span>+<span style=\"color: #ff00ff\">\"LAB\"<\/span>\r\n\r\ntxt2 = \r\n\r\n    \"MATLAB\"\r\n<\/pre>\n<p>\u5927\u304b\u3063\u3053\u3067\u56f2\u3046\u66f8\u304d\u65b9\u306f\u7d50\u5408\u3059\u308b\u8981\u7d20\u304c\u5897\u3048\u308b\u307b\u3069\u30df\u30b9\u3057\u3084\u3059\u3044\u306e\u3067\u3001\u30b7\u30f3\u30d7\u30eb\u306b\u8db3\u3057\u7b97\u3067\u7e4b\u3044\u3067\u3044\u3051\u308b\u306e\u306f\u3042\u308a\u304c\u305f\u3044\u3067\u3059\u306d\u3002\u306a\u304a\u3001<a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/ref\/append.html\">append<\/a> \u95a2\u6570\u3092\u4f7f\u3046\u3068\u3069\u3061\u3089\u306e\u30c7\u30fc\u30bf\u578b\u3082\u7d50\u5408\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001char \u578b\u3068 string \u578b\u306f\u540c\u3058\u6587\u5b57\u5217\u3092\u6271\u3046\u30c7\u30fc\u30bf\u578b\u3067\u3042\u3063\u3066\u3082\u305d\u306e\u6027\u8cea\u306f\u5927\u304d\u304f\u7570\u306a\u308a\u307e\u3059\u3002\u5927\u96d1\u628a\u306b\u307e\u3068\u3081\u308b\u3068\u3001char \u578b\u306f\u6587\u5b57\u3092\u4e00\u5358\u4f4d\u3068\u3057\u3066\u3001string \u578b\u306f\u6587\u5b57\u5217\u3092\u4e00\u5358\u4f4d\u3068\u3057\u3066\u7ba1\u7406\u3057\u3066\u3044\u308b\u3001\u3068\u3044\u3046\u3088\u3046\u306a\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u306d\u3002<\/p>\n<p>&nbsp;<\/p>\n<h1><span style=\"color: #ff6600\">3. string \u578b\u306e\u30e1\u30ea\u30c3\u30c8<\/span><\/h1>\n<p>\u305d\u308c\u3067\u306f\u3001string \u578b\u306e\u6027\u8cea\u3082\u306a\u3093\u3068\u306a\u304f\u7406\u89e3\u3067\u304d\u305f\u3068\u3053\u308d\u3067\u3001\u3053\u3053\u304b\u3089\u306f\u6587\u5b57\u5217\u51e6\u7406\u306b string \u578b\u3092\u4f7f\u3046\u30e1\u30ea\u30c3\u30c8\u3092\u78ba\u8a8d\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #ff6600\">\u30e1\u30ea\u30c3\u30c8\uff11\uff1a\u6570\u5024\u3068\u306e\u9023\u7d50\u304c\u7c21\u5358<\/span><\/h3>\n<p>\u524d\u8ff0\u306e\u901a\u308a\u3001string \u578b\u306f + \u6f14\u7b97\u5b50\u3067\u7d50\u5408\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u5b9f\u306f\u3053\u308c\u3001\u540c\u3058\u6587\u6cd5\u3067<strong>\u6570\u5024\u3068\u3082\u7d50\u5408\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059<\/strong>\u3002<\/p>\n<pre style=\"margin-bottom: 2em\">&gt;&gt; version = <span style=\"color: #ff00ff\">\"R\"<\/span>+2025+<span style=\"color: #ff00ff\">\"b\"<\/span> <span style=\"color: #008000\">% \u6570\u5b57\u3068\u6587\u5b57\u3092 + \u3067\u7d50\u5408\uff01<\/span>\r\n\r\nversion = \r\n\r\n    \"R2025b\"\r\n<\/pre>\n<p>\u5192\u982d\u306e\u30af\u30a4\u30ba\u306e\u89e3\u7b54\u3067\u3082\u3053\u306e\u6587\u6cd5\u3092\u4f7f\u3063\u3066\u3044\u307e\u3057\u305f\u306d\u3002char \u578b\u306f\u6570\u5024\u3068\u76f4\u63a5\u7d50\u5408\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u305f\u3081\u3001num2str \u95a2\u6570\u3067\u5909\u63db\u3057\u3066\u7d50\u5408\u3059\u308b\u3001\u3068\u3044\u3046\u51e6\u7406\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u7d50\u5408\u3059\u308b\u6570\u5024\u304c\u5897\u3048\u308b\u307b\u3069\u30b3\u30fc\u30c9\u304c\u8907\u96d1\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<pre style=\"margin-bottom: 2em\">&gt;&gt; version = [<span style=\"color: #ff00ff\">'R'<\/span> num2str(2025) <span style=\"color: #ff00ff\">'b Update'<\/span> num2str(1)]\r\n\r\nversion =\r\n\r\n    'R2025b Update1'\r\n\r\n&gt;&gt; version = <span style=\"color: #ff00ff\">\"R\"<\/span>+2025+<span style=\"color: #ff00ff\">\"b Update\"<\/span>+1\r\n\r\nversion = \r\n\r\n    \"R2025b Update1\"\r\n<\/pre>\n<p>\u305d\u306e\u305f\u3081\u3001\u6570\u5024\u3092\u6587\u5b57\u5217\u3068\u7d50\u5408\u3059\u308b\u51e6\u7406\u304c\u983b\u51fa\u3059\u308b\u3088\u3046\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5834\u5408\u306f\u3001string \u578b\u3092\u4f7f\u3046\u306e\u304c\u30aa\u30b9\u30b9\u30e1\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #ff6600\">\u30e1\u30ea\u30c3\u30c8\uff12\uff1a\u30d9\u30af\u30c8\u30eb\u6f14\u7b97\u304c\u4f7f\u3048\u308b<\/span><\/h3>\n<p>string \u578b\u306f\u8907\u6570\u306e\u6587\u5b57\u5217\u3092\u30d9\u30af\u30c8\u30eb\u3067\u7ba1\u7406\u3059\u308b\u305f\u3081\u3001MATLAB \u306e<strong>\u30d9\u30af\u30c8\u30eb\u6f14\u7b97\u306e\u4ed5\u69d8\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059<\/strong>\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u82d7\u5b57\u3068\u540d\u524d\u3092\u7d44\u307f\u5408\u308f\u305b\u30013 x 3 = 9 \u901a\u308a\u306e\u30d5\u30eb\u30cd\u30fc\u30e0\u3092\u4f5c\u308d\u3046\u3068\u3057\u305f\u5834\u5408\u3001\u3069\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u3051\u3070\u3088\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u82d7\u5b57\uff1a\u7530\u4e2d\u3001\u4f50\u85e4\u3001\u9234\u6728<br \/>\n\u540d\u524d\uff1a\u4e00\u90ce\u3001\u4e8c\u90ce\u3001\u4e09\u90ce<\/p>\n<p>&nbsp;<\/p>\n<p>char \u578b\u3092\u4f7f\u3063\u3066\u7d20\u76f4\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u306b\u306a\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<pre style=\"margin-bottom: 2em\">lastName = {<span style=\"color: #ff00ff\">'\u7530\u4e2d'<\/span>,<span style=\"color: #ff00ff\">'\u4f50\u85e4'<\/span>,<span style=\"color: #ff00ff\">'\u9234\u6728'<\/span>};\r\nfirstName = {<span style=\"color: #ff00ff\">'\u4e00\u90ce'<\/span>,<span style=\"color: #ff00ff\">'\u4e8c\u90ce'<\/span>,<span style=\"color: #ff00ff\">'\u4e09\u90ce'<\/span>};\r\nfullName = cell(1,9);\r\nidx = 1\r\n<span style=\"color: #0000ff\">for<\/span> k = 1:3\r\n    <span style=\"color: #0000ff\">for<\/span> n = 1:3\r\n        fullName{idx} = [lastName{n} firstName{k}];\r\n        idx = idx + 1;\r\n    <span style=\"color: #0000ff\">end<\/span>\r\n<span style=\"color: #0000ff\">end\r\n<\/span><\/pre>\n<p>\uff12\u91cd\u30eb\u30fc\u30d7\u3092\u56de\u3057\u3066\uff11\u3064\u305a\u3064\u7d50\u5408\u3057\u3066\u3044\u304f\u3001\u3068\u3044\u3046\u30a2\u30d7\u30ed\u30fc\u30c1\u3067\u3059\u306d\u3002\u30b3\u30fc\u30c9\u305d\u306e\u3082\u306e\u306f\u5358\u7d14\u3067\u308f\u304b\u308a\u3084\u3059\u3044\u3067\u3059\u304c\u3001\u3053\u308c\u3060\u3051\u306e\u305f\u3081\u306b\uff12\u91cd\u30eb\u30fc\u30d7\u3092\u56de\u3059\u306e\u306f\u3061\u3087\u3063\u3068\u5927\u3052\u3055\u306a\u6c17\u3082\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001char \u578b\u306e\u6271\u3044\u306b\u6163\u308c\u3066\u3044\u308b\u65b9\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a <a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/ref\/cellfun.html\">cellfun<\/a> \u95a2\u6570\u3092\u4f7f\u3063\u305f\u30b3\u30fc\u30c9\u3092\u601d\u3044\u3064\u304f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<pre style=\"margin-bottom: 2em\">lastName = {<span style=\"color: #ff00ff\">'\u7530\u4e2d'<\/span>,<span style=\"color: #ff00ff\">'\u4f50\u85e4'<\/span>,<span style=\"color: #ff00ff\">'\u9234\u6728'<\/span>};\r\nfirstName = {<span style=\"color: #ff00ff\">'\u4e00\u90ce'<\/span>,<span style=\"color: #ff00ff\">'\u4e8c\u90ce'<\/span>,<span style=\"color: #ff00ff\">'\u4e09\u90ce'<\/span>};\r\nfullName = cellfun(@(x) append(x,firstName),lastName,<span style=\"color: #ff00ff\">'UniformOutput'<\/span>,false);\r\nfullName = [fullName{:}];\r\n<\/pre>\n<p>cellfun \u95a2\u6570\u3067 lastName \u306e\u5404\u8981\u7d20\u306b firstName \u3092\u7d50\u5408\u3059\u308b\u3053\u3068\u3067\u30019 \u30d1\u30bf\u30fc\u30f3\u306e\u30d5\u30eb\u30cd\u30fc\u30e0\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002\u3055\u3063\u304d\u306b\u6bd4\u3079\u3066\u30b3\u30fc\u30c9\u304c\u77ed\u304f\u306a\u308a\u307e\u3057\u305f\u304c\u3001\u4eca\u5ea6\u306f\u51e6\u7406\u304c\u8907\u96d1\u306b\u306a\u3063\u305f\u306e\u3067\u3042\u307e\u308a\u76f4\u611f\u7684\u3067\u306f\u306a\u3044\u30b3\u30fc\u30c9\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3053\u308c\u3092 string \u578b\u3067\u66f8\u304f\u3068\u3069\u3046\u306a\u308b\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<pre style=\"margin-bottom: 2em\">lastName = [<span style=\"color: #ff00ff\">\"\u7530\u4e2d\"<\/span>,<span style=\"color: #ff00ff\">\"\u4f50\u85e4\"<\/span>,<span style=\"color: #ff00ff\">\"\u9234\u6728\"<\/span>];\r\nfirstName = [<span style=\"color: #ff00ff\">\"\u4e00\u90ce\"<\/span>;<span style=\"color: #ff00ff\">\"\u4e8c\u90ce\"<\/span>;<span style=\"color: #ff00ff\">\"\u4e09\u90ce\"<\/span>];\r\nfullName = lastName+firstName;<\/pre>\n<p>\u306a\u3093\u3068\u3001\u8db3\u3057\u7b97\u3060\u3051\u3067\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306e\u30dd\u30a4\u30f3\u30c8\u306f\u3001lastName \u3092\u6a2a\u30d9\u30af\u30c8\u30eb\u3001firstName \u3092\u7e26\u30d9\u30af\u30c8\u30eb\u3067\u4f5c\u3063\u3066\u3044\u308b\u70b9\u3067\u3059\u3002MATLAB \u306b\u306f\u300c\u7e26\u30d9\u30af\u30c8\u30eb\u3068\u6a2a\u30d9\u30af\u30c8\u30eb\u3092\u8db3\u3057\u7b97\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u305d\u308c\u3089\u3092\u30b3\u30d4\u30fc\u3057\u3066\u884c\u5217\u306b\u62e1\u5f35\u3057\u3066\u6f14\u7b97\u3092\u884c\u3046\uff08\u6697\u9ed9\u7684\u62e1\u5f35\uff09\u300d\u3068\u3044\u3046\u4ed5\u69d8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"398\" height=\"119\" class=\"alignnone size-full wp-image-14257\" src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2025\/11\/vecEx.png\" alt=\"\" \/><\/p>\n<p>\u53c2\u7167\uff1a<a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/matlab_prog\/compatible-array-sizes-for-basic-operations.html\">\u57fa\u672c\u7684\u306a\u6f14\u7b97\u3067\u4e92\u63db\u6027\u306e\u3042\u308b\u914d\u5217\u30b5\u30a4\u30ba<\/a><\/p>\n<p>string \u578b\u306f\u30d9\u30af\u30c8\u30eb\u3067\u3042\u308a\u3001\u304b\u3064\u8db3\u3057\u7b97\u3067\u7d50\u5408\u3092\u884c\u3044\u307e\u3059\u306e\u3067\u3001\u3053\u306e\u4ed5\u69d8\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3059\u3002<\/p>\n<p>\u524d\u8ff0\u306e\u6570\u5b57\u3068\u306e\u9023\u7d50\u6a5f\u80fd\u3068\u7d44\u307f\u5408\u308f\u305b\u308c\u3070\u3001\u8907\u6570\u306e\u65e5\u4ed8\u30c7\u30fc\u30bf\u3092\u4f5c\u308b\u3068\u304d\u306b\u3082\u6d3b\u7528\u3067\u304d\u307e\u3059\u306d\uff01<\/p>\n<pre style=\"margin-bottom: 2em\">&gt;&gt; dates = ((1:3)+<span style=\"color: #ff00ff\">\"\u6708\"<\/span>)+((1:3)+<span style=\"color: #ff00ff\">\"\u65e5\"<\/span>)' <span style=\"color: #008000\">% 1-3\u6708\u30681-3\u65e5\u3092\u7d50\u5408<\/span>\r\n\r\ndates = \r\n\r\n  3\u00d73 \u306e <span style=\"color: #0000ff\">string<\/span> \u914d\u5217\r\n\r\n    \"1\u67081\u65e5\"    \"2\u67081\u65e5\"    \"3\u67081\u65e5\"\r\n    \"1\u67082\u65e5\"    \"2\u67082\u65e5\"    \"3\u67082\u65e5\"\r\n    \"1\u67083\u65e5\"    \"2\u67083\u65e5\"    \"3\u67083\u65e5\"\r\n<\/pre>\n<p>\u30bb\u30eb\u914d\u5217\u306f\u4e3b\u8981\u306a\u6f14\u7b97\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001char \u578b\u3067\u306f\u3069\u3046\u3057\u3066\u3082 for \u30eb\u30fc\u30d7\u3084 cellfun \u95a2\u6570\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u3001\u30b3\u30fc\u30c9\u304c\u8907\u96d1\u306b\u306a\u308a\u304c\u3061\u3067\u3059\u3002\u7279\u306b\u3001\u4eca\u56de\u306e\u3088\u3046\u306a\u8907\u6570\u6587\u5b57\u5217\u540c\u58eb\u306e\u7d50\u5408\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u306f\u3001string \u578b\u3092\u4f7f\u3046\u306e\u304c\u30aa\u30b9\u30b9\u30e1\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #ff6600\">\u30e1\u30ea\u30c3\u30c8\uff13\uff1apattern \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4f7f\u3048\u308b\uff08R2020b \u4ee5\u964d\uff09<\/span><\/h3>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u6587\u7ae0\u306e\u4e2d\u306b\u542b\u307e\u308c\u308b MATLAB \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u3059\u3079\u3066\u53d6\u5f97\u3057\u3088\u3046\u3068\u601d\u3063\u305f\u5834\u5408\u3001\u3069\u3046\u3059\u308c\u3070\u3088\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p style=\"padding-left: 40px\"><em>string \u578b\u306f R2016b \u3067\u5c0e\u5165\u3055\u308c\u305f\u4fbf\u5229\u306a\u30c7\u30fc\u30bf\u578b\u3067\u3059\u3002\u5b9f\u969b\u3001\u540c\u50da\u306e Robert \u306f 2021 \u5e74\u306b MATLAB \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092 R2021a \u306b\u4e0a\u3052\u3066\u4ee5\u6765\u3001char \u578b\u3092\u4f7f\u308f\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/em><\/p>\n<p>&#8220;R&#8221; \u3092\u63a2\u3059\u3060\u3051\u3060\u3068 &#8220;Robert&#8221; \u3082\u30d2\u30c3\u30c8\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3057\u3001\u6570\u5b57\u3092\u63a2\u3059\u3060\u3051\u3060\u3068 &#8220;2021 \u5e74&#8221; \u3082\u30d2\u30c3\u30c8\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u3060\u3051\u3092\u62bd\u51fa\u3057\u305f\u3051\u308c\u3070\u3001\u300cR \u304b\u3089\u59cb\u307e\u308a\u3001\u6570\u5b57\u304c 4 \u3064\u7d9a\u304d\u3001a \u304b b \u3067\u7d42\u308f\u308b\u300d\u3068\u3044\u3046\u30d1\u30bf\u30fc\u30f3\u3092\u6e80\u305f\u3059\u6587\u5b57\u5217\u3092\u63a2\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u901a\u5e38\u3001\u3053\u306e\u3088\u3046\u306a\u7279\u5b9a\u306e\u30d1\u30bf\u30fc\u30f3\u306e\u6587\u5b57\u5217\u3092\u63a2\u3059\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u6b63\u898f\u8868\u73fe\u3092\u6d3b\u7528\u3057\u305f\u30b3\u30fc\u30c9\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre style=\"margin-bottom: 2em\">&gt;&gt; chr = <span style=\"color: #ff00ff\">'String \u578b\u306f R2016b \u3067\u5c0e\u5165\u3055\u308c\u305f\u4fbf\u5229\u306a\u30c7\u30fc\u30bf\u578b\u3067\u3059\u3002\u5b9f\u969b\u3001\u540c\u50da\u306e Robert \u306f 2021 \u5e74\u306b MATLAB \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092 R2021a \u306b\u4e0a\u3052\u3066\u4ee5\u6765\u3001Char \u578b\u3092\u4f7f\u308f\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002'<\/span>;\r\n&gt;&gt; pattern = <span style=\"color: #ff00ff\">'R\\d{4}[ab]'<\/span>; <span style=\"color: #008000\">% \u6b63\u898f\u8868\u73fe\u3067\u30d1\u30bf\u30fc\u30f3\u3092\u8868\u73fe<\/span>\r\n&gt;&gt; version = regexp(chr,pattern,<span style=\"color: #ff00ff\">'match'<\/span>)\r\n\r\nversion =\r\n\r\n  1\u00d72 \u306e cell \u914d\u5217\r\n\r\n    {'R2016b'}    {'R2021a'}\r\n\r\n<\/pre>\n<p>\u6b63\u898f\u8868\u73fe\u3068\u306f\u3001\u6587\u5b57\u5217\u306e\u30d1\u30bf\u30fc\u30f3\u3092\u8868\u73fe\u3059\u308b\u305f\u3081\u306e\u6587\u6cd5\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\uff08\u8a73\u7d30\u306f<a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/matlab_prog\/regular-expressions.html\">\u3053\u3061\u3089<\/a>\uff09\u3002\u4eca\u56de\u306f\u6570\u5b57 4 \u3064\u3092 &#8220;\/d{4}&#8221;\u3001a \u304b b \u304b\u3092 &#8220;[ab]&#8221; \u3067\u8868\u73fe\u3057\u3001\u305d\u308c\u3068\u4e00\u81f4\u3059\u308b\u6587\u5b57\u5217\u3092 <a href=\"https:\/\/jp.mathworks.com\/help\/releases\/R2024b\/matlab\/ref\/regexp.html\">regexp<\/a> \u95a2\u6570\u3067\u62bd\u51fa\u3057\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3001\u6b63\u898f\u8868\u73fe\u306f\u69d8\u3005\u306a\u30eb\u30fc\u30eb\u304c\u3042\u308b\u306e\u3067\u3001\u6163\u308c\u308b\u307e\u3067\u306f\u81ea\u5206\u304c\u6ce8\u76ee\u3057\u305f\u3044\u6587\u5b57\u5217\u30d1\u30bf\u30fc\u30f3\u3092\u3069\u3046\u3084\u3063\u3066\u8868\u73fe\u3059\u308c\u3070\u3044\u3044\u304b\u60a9\u307f\u304c\u3061\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u306b\u5bfe\u3057\u3001R2020b \u304b\u3089\u5c0e\u5165\u3055\u308c\u305f <a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/ref\/pattern.html\">pattern \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/a> \u3068\u3044\u3046\u3082\u306e\u3092\u4f7f\u3046\u3068\u3001\u3082\u3063\u3068\u76f4\u611f\u7684\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre style=\"margin-bottom: 2em\">&gt;&gt; str = <span style=\"color: #ff00ff\">\"string \u578b\u306f R2016b \u3067\u5c0e\u5165\u3055\u308c\u305f\u4fbf\u5229\u306a\u30c7\u30fc\u30bf\u578b\u3067\u3059\u3002\u5b9f\u969b\u3001\u540c\u50da\u306e Robert \u306f 2021 \u5e74\u306b MATLAB \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092 R2021a \u306b\u4e0a\u3052\u3066\u4ee5\u6765\u3001Char \u578b\u3092\u4f7f\u308f\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\"<span style=\"color: #000000\">;<\/span><\/span>\r\n&gt;&gt; pattern = <span style=\"color: #ff00ff\">\"R\"<\/span>+digitsPattern(4)+characterListPattern(<span style=\"color: #ff00ff\">\"ab\"<\/span>); <span style=\"color: #008000\">% pattern \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u30d1\u30bf\u30fc\u30f3\u3092\u8868\u73fe<\/span>\r\n&gt;&gt; version = extract(str,pattern)\r\n\r\nversion = \r\n\r\n  2\u00d71 \u306e <span style=\"color: #0000ff\">string<\/span> \u914d\u5217\r\n\r\n    \"R2016b\"\r\n    \"R2021a\"\r\n<\/pre>\n<p>\u6b63\u898f\u8868\u73fe\u306e\u4ee3\u308f\u308a\u306b\u3001<a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/ref\/digitspattern.html\">digitsPattern<\/a> \u3084 <a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/ref\/characterlistpattern.html\">characterListPattern<\/a> \u3068\u3044\u3063\u305f pattern \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f7f\u3063\u3066\u30d1\u30bf\u30fc\u30f3\u3092\u8868\u73fe\u3057\u3066\u3044\u307e\u3059\u3002\u30b3\u30fc\u30c9\u81ea\u4f53\u306f\u5c11\u3057\u9577\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u3069\u306e\u3088\u3046\u306a\u30d1\u30bf\u30fc\u30f3\u3092\u8868\u3057\u3066\u3044\u308b\u304b\u304c\u308f\u304b\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001pattern \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u7d50\u5408\u3057\u305f\u6587\u5b57\u5217\u306f pattern \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u7ba1\u7406\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u901a\u5e38\u306e\u6587\u5b57\u5217\u3068\u898b\u5206\u3051\u304c\u3064\u304d\u3084\u3059\u3044\u3001\u3068\u3044\u3046\u306e\u3082\u5b09\u3057\u3044\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"402\" height=\"55\" class=\"alignnone size-full wp-image-14259\" src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2025\/11\/pattern.png\" alt=\"\" \/><\/p>\n<p>\u4e2d\u8eab\u3092\u898b\u306a\u3044\u3067\u3082\u3053\u306e\u5909\u6570\u304c\u30d1\u30bf\u30fc\u30f3\u3092\u8868\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308b\u306e\u3067\u3001\u30b3\u30fc\u30c9\u306e\u53ef\u8aad\u6027\u5411\u4e0a\u306b\u7e4b\u304c\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u6b63\u898f\u8868\u73fe\u306f regexp \u306a\u3069\u306e\u5c02\u7528\u306e\u95a2\u6570\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001pattern \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f <a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/ref\/pattern.html\">extract<\/a> \u95a2\u6570\u3084 <a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/ref\/string.contains.html\">contains<\/a> \u95a2\u6570\u3001<a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/ref\/string.replace.html\">replace<\/a> \u95a2\u6570\u306a\u3069\u3001\u901a\u5e38\u306e\u6587\u5b57\u5217\u51e6\u7406\u3067\u4f7f\u3046\u95a2\u6570\u3068\u305d\u306e\u307e\u307e\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u7279\u5b9a\u306e\u6587\u5b57\u5217\u3092\u63a2\u3059\u51e6\u7406\u3082\u3001\u7279\u5b9a\u306e\u30d1\u30bf\u30fc\u30f3\u3092\u63a2\u3059\u51e6\u7406\u3082\u3001\u5168\u304f\u540c\u3058\u69cb\u9020\u306e\u30b3\u30fc\u30c9\u3067\u5b9f\u88c5\u3067\u304d\u3001\u30b3\u30fc\u30c9\u306e\u62e1\u5f35\u6027\u3084\u518d\u5229\u7528\u6027\u306b\u7e4b\u304c\u308a\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u6b8b\u5ff5\u306a\u304c\u3089\u3001<strong>pattern \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f string \u578b\u3068\u3057\u304b\u7d50\u5408\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093<\/strong>\u3002\u305d\u306e\u305f\u3081\u3001\u7121\u7406\u3084\u308a char \u578b\u3068\u7d50\u5408\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001<\/p>\n<pre style=\"margin-bottom: 2em\">&gt;&gt; pattern = 'R'+digitsPattern(4)+characterListPattern('ab')\r\n\r\npattern = \r\n\r\n  pattern\r\n\r\n  \u30de\u30c3\u30c1\u30f3\u30b0:\r\n\r\n    \"R\" + digitsPattern(4) + characterListPattern(\"ab\")\r\n\r\n<\/pre>\n<p>\u5f37\u5236\u7684\u306b string \u578b\u306b\u5909\u63db\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u4e00\u5fdc\u305d\u306e\u307e\u307e char \u578b\u306e\u6587\u5b57\u5217\u51e6\u7406\u306b\u4f7f\u3046\u3053\u3068\u306f\u53ef\u80fd\u3067\u3059\u304c\u3001char \u578b\u3068 string \u578b\u304c\u6df7\u5728\u3059\u308b\u30b3\u30fc\u30c9\u306b\u306a\u3063\u3066\u6587\u6cd5\u30df\u30b9\u306e\u30ea\u30b9\u30af\u304c\u9ad8\u304f\u306a\u308a\u307e\u3059\u306e\u3067\u3001pattern \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f7f\u3046\u4e88\u5b9a\u306e\u5834\u5408\u306f string \u578b\u3092\u4f7f\u3046\u306e\u304c\u3088\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001pattern \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3059\u3079\u3066\u306e\u6b63\u898f\u8868\u73fe\u3092\u5b8c\u74a7\u306b\u30ab\u30d0\u30fc\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u8907\u96d1\u306a\u30d1\u30bf\u30fc\u30f3\u304c\u5fc5\u8981\u306b\u306a\u308b\u5834\u5408\u306f\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u308f\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u30b1\u30fc\u30b9\u3082\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u3088\u3046\u306a\u5834\u5408\u3001<a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/ref\/regexppattern.html\">regexpPattern<\/a> \u3092\u4f7f\u3046\u3068\u6b63\u898f\u8868\u73fe\u306e pattern \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u901a\u5e38\u306e pattern \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u8868\u73fe\u3067\u304d\u308b\u3068\u3053\u308d\u306f\u8868\u73fe\u3057\u3001\u8868\u73fe\u3067\u304d\u306a\u3044\u90e8\u5206\u306f\u6b63\u898f\u8868\u73fe\u3067 pattern \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308a\u3001\u305d\u308c\u3089\u3092\u7d50\u5408\u3057\u3066 1 \u3064\u306e\u30d1\u30bf\u30fc\u30f3\u3092\u4f5c\u308b\u3001\u3068\u3044\u3046\u306e\u3082\u3042\u308a\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h1><span style=\"color: #ff6600\">4. char \u578b\u3068\u306e\u4f7f\u3044\u5206\u3051<\/span><\/h1>\n<p>\u3053\u3053\u307e\u3067 string \u578b\u306e\u30e1\u30ea\u30c3\u30c8\u3092\u6319\u3052\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u3082\u3061\u308d\u3093 char \u578b\u3092\u4f7f\u3063\u305f\u65b9\u304c\u3088\u3044\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002\u7279\u306b\u3001\u7279\u5b9a\u306e\u4f4d\u7f6e\u306e\u6587\u5b57\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3088\u3046\u306a\u51e6\u7406\u304c\u591a\u3044\u5834\u5408\u306f\u3001char \u578b\u3092\u4f7f\u3046\u65b9\u304c\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u3084\u3059\u3044\u3067\u3059\u3002<\/p>\n<p>\u524d\u8ff0\u306e\u901a\u308a\u3001char \u578b\u306f\u6587\u5b57\u5217\u3092\u6587\u5b57\u306e\u30d9\u30af\u30c8\u30eb\u3068\u3057\u3066\u6271\u3044\u307e\u3059\u306e\u3067\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u6307\u5b9a\u306b\u3088\u308a\u7c21\u5358\u306b\u6587\u5b57\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre style=\"margin-bottom: 2em\">&gt;&gt; chr = <span style=\"color: #ff00ff\">'ID:12345'<\/span>;\r\n&gt;&gt; id = chr(4:end)\r\n\r\nid =\r\n\r\n    '12345'\r\n\r\n<\/pre>\n<p>string \u578b\u306f\u6587\u5b57\u5217\u3092 1 \u3064\u306e\u584a\u3068\u3057\u3066\u6271\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u7279\u5b9a\u306e\u4f4d\u7f6e\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3088\u3046\u3068\u601d\u3063\u305f\u3089\u5c02\u7528\u306e\u95a2\u6570\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre style=\"margin-bottom: 2em\">&gt;&gt; str = \"ID:12345\";\r\n&gt;&gt; id = extractAfter(str,3)\r\n\r\nid = \r\n\r\n    \"12345\"\r\n\r\n<\/pre>\n<p>\u4ed6\u306b\u3082\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b1\u30fc\u30b9\u306b\u8a72\u5f53\u3059\u308b\u5834\u5408\u3082\u3001char \u578b\u3092\u4f7f\u3046\u3053\u3068\u304c\u63a8\u5968\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30fb\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3084\u95a2\u6570\u3068\u306e\u4e92\u63db\u6027\u304c\u91cd\u8981\u306a\u5834\u5408<\/p>\n<p>string \u578b\u306f R2016b \u4ee5\u964d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3057\u304b\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002\u305d\u308c\u3088\u308a\u3082\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e MATLAB \u3067\u3082\u4f7f\u7528\u3059\u308b\u53ef\u80fd\u6027\u306e\u3042\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u3063\u3066\u3044\u308b\u5834\u5408\u3084\u3001\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u4f5c\u3063\u305f\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001\u4e92\u63db\u6027\u91cd\u8996\u3067 char \u578b\u3092\u4f7f\u7528\u3059\u308b\u306e\u304c\u30aa\u30b9\u30b9\u30e1\u3067\u3059\u3002<\/p>\n<p>\u30fb\u30e1\u30e2\u30ea\u52b9\u7387\u3092\u91cd\u8996\u3059\u308b\u5834\u5408<\/p>\n<p>string \u578b\u306b\u6bd4\u3079\u3066 char \u578b\u306e\u65b9\u304c\u30e1\u30e2\u30ea\u6d88\u8cbb\u304c\u5c11\u306a\u3044\u306e\u3067\u3001\u5927\u91cf\u306e\u6587\u5b57\u5217\u3092\u6271\u3046\u5834\u5408\u306f char \u578b\u3092\u4f7f\u3046\u65b9\u304c\u30e1\u30e2\u30ea\u3092\u7bc0\u7d04\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30fb\u6587\u5b57\u30b3\u30fc\u30c9\u51e6\u7406\u3092\u884c\u3046\u5834\u5408<\/p>\n<p>char \u95a2\u6570\u306b\u3088\u308a\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u5bfe\u5fdc\u3059\u308b\u6587\u5b57\u306b\u5909\u63db\u3067\u304d\u308b\u305f\u3081\u3001\u6587\u5b57\u30b3\u30fc\u30c9\u7cfb\u306e\u51e6\u7406\u3092\u7c21\u5358\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30fbC \u8a00\u8a9e\u3068\u306e\u9023\u643a\u3092\u884c\u3046\u5834\u5408<\/p>\n<p>\u6587\u5b57\u914d\u5217\uff08char*\uff09\u3092\u5165\u529b\u3068\u3059\u308b C \u8a00\u8a9e\u306e\u95a2\u6570\u3092 MATLAB \u3067\u547c\u3073\u51fa\u3059\u5834\u5408\u3001char \u578b\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001C \u8a00\u8a9e\u306e\u95a2\u6570\u304b\u3089\u8fd4\u3063\u3066\u304f\u308b\u6587\u5b57\u914d\u5217\u3082 char \u578b\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001C \u8a00\u8a9e\u306e\u6587\u5b57\u5217\u51e6\u7406\u7cfb\u306e\u95a2\u6570\u3092\u4f55\u5ea6\u3082\u4f7f\u7528\u3059\u308b\u3088\u3046\u306a\u5834\u5408\u306f\u3001\u6587\u5b57\u5217\u3092 char \u578b\u306b\u7d71\u4e00\u3057\u305f\u65b9\u304c\u6271\u3044\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u305f\u3060\u3001\u3053\u308c\u3089\u306f\u5c11\u3057\u72b6\u6cc1\u304c\u9650\u5b9a\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u306f<\/p>\n<p style=\"padding-left: 40px\">\u57fa\u672c\u7684\u306a\u6587\u5b57\u5217\u51e6\u7406\u306f string \u578b<br \/>\n\u6587\u5b57\u5358\u4f53\u304c\u91cd\u8981\u306a\u5834\u5408\u306f char \u578b<\/p>\n<p>\u3068\u3044\u3046\u5927\u96d1\u628a\u306a\u30a4\u30e1\u30fc\u30b8\u3092\u6301\u3063\u305f\u4e0a\u3067\u3001\u81ea\u5206\u304c\u4f7f\u3046\u95a2\u6570\u7b49\u3068\u306e\u517c\u306d\u5408\u3044\u3082\u8003\u616e\u3057\u3066\u4f7f\u3044\u5206\u3051\u308b\u3001\u3068\u3044\u3046\u306e\u304c\u30aa\u30b9\u30b9\u30e1\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u307e\u305f\u30012025\u5e749\u6708\u3088\u308a MathWorks \u304b\u3089\u516c\u958b\u3057\u3066\u3044\u308b<a href=\"https:\/\/github.com\/mathworks\/MATLAB-Coding-Guidelines\" class=\"external\" rel=\"nofollow\" target=\"_blank\">\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30ac\u30a4\u30c9\u30e9\u30a4\u30f3<\/a>\u4e0a\u3067\u306f\u3001\u8907\u6570\u306e\u6587\u5b57\u5217\u3092\u6271\u3046\u5834\u5408\u3001char \u578b\u306e\u30bb\u30eb\u914d\u5217\u3088\u308a\u3082 string \u578b\u306e\u914d\u5217\u3092\u4f7f\u3046\u3053\u3068\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u300c\u8907\u6570\u306e\u6587\u5b57\u5217\u304c\u51fa\u3066\u304d\u305f\u3089 string \u578b\uff01\u300d\u3068\u899a\u3048\u3066\u3057\u307e\u3063\u3066\u3082\u3088\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"200\" class=\"alignnone size-large wp-image-14302\" src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2025\/12\/guideline2-1024x200.png\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<h1><span style=\"color: #ff6600\">5. \u307e\u3068\u3081<\/span><\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f string \u578b\u306b\u3064\u3044\u3066\u306e\u304a\u8a71\u3067\u3057\u305f\u3002\u79c1\u3082\u696d\u52d9\u6539\u5584\u30a2\u30d7\u30ea\u306e\u958b\u767a\u7b49\u3067\u666e\u6bb5\u6587\u5b57\u5217\u51e6\u7406\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u304c\u3001string \u578b\u306b\u52a9\u3051\u3089\u308c\u308b\u6a5f\u4f1a\u306f\u975e\u5e38\u306b\u591a\u3044\u3067\u3059\u3002\u4eca\u307e\u3067 char \u578b\u3092\u305a\u3063\u3068\u4f7f\u3063\u3066\u304d\u305f\u65b9\u3082\u3001\u305c\u3072\u4e00\u5ea6 string \u578b\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<\/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\/12\/quiz2-1024x424.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\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001\u300cMATLAB \u3068 Simulink \u3092\u7e4b\u3050\u300d\u3092\u30c6\u30fc\u30de\u306b\u3001\u4e3b\u306b\u6280\u8853\u7684\u306a\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u307e\u3059\u3002<br \/>\n\u6700\u8fd1\u3081\u3063\u304d\u308a\u5bd2\u304f\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u306d\u3002\u79c1\u306f\u81ea\u5b85\u304b\u3089\u6700\u5bc4\u308a\u99c5\u307e\u3067 15 \u5206\u6b69\u304b\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\u306e\u3067\u3001\u6bce\u65e5\u5bd2\u3055\u306b\u8010\u3048\u306a\u304c\u3089\u5e30\u308a\u3001\u81ea\u5ba4\u306e PC \u306e GPU&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/japan-community\/2025\/12\/03\/matlab_string_text_processing\/\">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":[61],"tags":[67],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/posts\/14239"}],"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=14239"}],"version-history":[{"count":58,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/posts\/14239\/revisions"}],"predecessor-version":[{"id":14304,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/posts\/14239\/revisions\/14304"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/media?parent=14239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/categories?post=14239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/tags?post=14239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}