{"id":14503,"date":"2026-04-08T17:44:55","date_gmt":"2026-04-08T08:44:55","guid":{"rendered":"https:\/\/blogs.mathworks.com\/japan-community\/?p=14503"},"modified":"2026-04-08T17:49:27","modified_gmt":"2026-04-08T08:49:27","slug":"refactoring-a-simulink-model-using-the-matlab-mcp-server-jp","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/japan-community\/2026\/04\/08\/refactoring-a-simulink-model-using-the-matlab-mcp-server-jp\/","title":{"rendered":"MATLAB MCP Server \u3092\u4f7f\u3063\u305f Simulink \u30e2\u30c7\u30eb\u306e\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0"},"content":{"rendered":"<div class=\"rtcContent\">\n<p><span style=\"color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-size: 14px; white-space-collapse: preserve;\">\u203b\u3053\u306e\u6295\u7a3f\u306f 2026 \u5e74 3 \u6708 26 \u65e5\u306b <\/span><a style=\"font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-size: 14px; white-space-collapse: preserve;\" href=\"https:\/\/blogs.mathworks.com\/simulink\/2026\/03\/26\/refactoring-a-simulink-model-using-the-matlab-mcp-server\/?from=jp\"> Guy on Simulink \u3078 \u6295\u7a3f<\/a><span style=\"color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-size: 14px; white-space-collapse: preserve;\">\u3055\u308c\u305f\u3082\u306e\u306e\u6284\u8a33\u3067\u3059\u3002<\/span><\/p>\n<\/div>\n<h6>&#8212;<\/h6>\n<div class=\"rtcContent\">\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><a href=\"https:\/\/matlab.mathworks.com\/open\/github\/v1?repo=simulink\/blog&amp;project=2026_03_25_MCP_Componentization\/MCP_MdlRefConvert.prj\"><img decoding=\"async\" loading=\"lazy\" class=\"imageNode\" style=\"vertical-align: baseline; width: 136px; height: 21px;\" src=\"https:\/\/blogs.mathworks.com\/simulink\/files\/MCP_MdlRef.mlx-03-26-26_1.png\" alt=\"\" width=\"136\" height=\"21\" \/><\/a><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\n<p>AI \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u4f7f\u3044\u59cb\u3081\u308b\u3068\u3001\u306a\u304b\u306a\u304b\u3084\u3081\u3089\u308c\u306a\u304f\u306a\u308a\u307e\u3059\u306d\uff01<\/p>\n<div>\n<p>\u4eca\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001<a href=\"https:\/\/sourcegraph.com\/\" class=\"external\" rel=\"nofollow\" target=\"_blank\">Sourcegraph<\/a> \u304c\u958b\u767a\u3057\u305f AI \u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3067\u3001<a href=\"https:\/\/code.claude.com\/docs\/en\/overview\" class=\"external\" rel=\"nofollow\" target=\"_blank\">Claude Code<\/a> \u3068\u4f3c\u305f\u5b58\u5728\u3067\u3042\u308b <a href=\"https:\/\/sourcegraph.com\/amp\" class=\"external\" rel=\"nofollow\" target=\"_blank\">Amp<\/a> \u3092\u4f7f\u3063\u3066\u3001\u79c1\u304c Simulink \u30e6\u30fc\u30b6\u30fc\u3092\u652f\u63f4\u3059\u308b\u4e2d\u3067\u6700\u3082\u983b\u7e41\u306b\u884c\u3063\u3066\u3044\u308b\u4f5c\u696d\u306e\u3072\u3068\u3064\uff1a\u30a2\u30af\u30bb\u30e9\u30ec\u30fc\u30bf\u30e2\u30fc\u30c9\u3067\u53c2\u7167\u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u30e2\u30c7\u30eb\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u5316\u3092\u6539\u5584\u3059\u308b\u4f5c\u696d\u3092\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<\/div>\n<\/div>\n<h2 style=\"margin: 20px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: bold; text-align: left;\">\u8ab2\u984c<\/h2>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\n<p>\u79c1\u304c\u5e38\u306b Simulink \u30e6\u30fc\u30b6\u30fc\u306b\u63a8\u5968\u3057\u3066\u304a\u308a\u3001\u307e\u305f <a href=\"https:\/\/www.mathworks.com\/company\/technical-articles\/improving-simulation-performance-in-simulink.html\">Improving Simulation Performance in Simulink<\/a> \u3068\u3044\u3046\u8a18\u4e8b\u3067\u3082\u7d39\u4ecb\u3057\u3066\u3044\u308b\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u306e\u3072\u3068\u3064\u304c\u3001\u30a2\u30af\u30bb\u30e9\u30ec\u30fc\u30bf\u30e2\u30fc\u30c9\u3067\u53c2\u7167\u30e2\u30c7\u30eb\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u53c2\u7167\u30e2\u30c7\u30eb\u306f\u4e8b\u524d\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u304d\u308b\u305f\u3081\u3001\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u9593\u3067\u5909\u66f4\u304c\u306a\u3044\u5834\u5408\u306b\u306f\u3001\u521d\u671f\u5316\u304c\u307b\u307c\u77ac\u6642\u306b\u884c\u308f\u308c\u3001\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3082\u9ad8\u901f\u306b\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<div>\n<p>\u3053\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u793a\u3059\u305f\u3081\u306b\u3001\u3053\u306e\u4f8b\uff08<a href=\"https:\/\/www.mathworks.com\/help\/simulink\/slref\/helicopter-modeling-and-simulation.html\">Helicopter Modeling and Simulation &#8211; MATLAB &amp; Simulink<\/a>\uff09\u304b\u3089\u59cb\u3081\u307e\u3057\u305f\u3002\u3053\u306e\u4f8b\u3092 MATLAB \u4e0a\u3067\u958b\u304d\u305f\u3044\u5834\u5408\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n<\/div>\n<div class=\"preformatted-matlab\" style=\"margin: 10px 3px 10px 55px; padding: 10px 10px 10px 5px;\">\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">openExample(<span style=\"color: #a709f5;\">&#8216;simulink_aerospace\/HelicopterModelingAndSimulationExample&#8217;<\/span>)<\/span><\/div>\n<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\n<div>\u79c1\u304c\u76ee\u306b\u3059\u308b\u591a\u304f\u306e\u30e6\u30fc\u30b6\u30fc\u30e2\u30c7\u30eb\u3068\u540c\u69d8\u306b\u3001\u53c2\u7167\u30e2\u30c7\u30eb\u3078\u5909\u63db\u3059\u308b\u306e\u306b\u9069\u3057\u305f\u5019\u88dc\u306f\u5236\u5fa1\u30ed\u30b8\u30c3\u30af\u3067\u3059\u3002\u3053\u306e\u4f8b\u3067\u306f\u3001<span style=\"font-family: monospace;\">Attitude and Altitude Control<\/span>: \u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u304c\u305d\u308c\u306b\u8a72\u5f53\u3057\u307e\u3059\u3002<\/div>\n<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><img decoding=\"async\" loading=\"lazy\" class=\"imageNode\" style=\"vertical-align: baseline; width: 857px; height: 346px;\" src=\"https:\/\/blogs.mathworks.com\/simulink\/files\/MCP_MdlRef.mlx-03-26-26_2.png\" alt=\"\" width=\"857\" height=\"346\" \/><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\n<div>\n<p>\u4f5c\u696d\u306e\u5927\u90e8\u5206\u3092\u81ea\u52d5\u3067\u884c\u3048\u308b <a href=\"https:\/\/www.mathworks.com\/help\/simulink\/slref\/simulink.subsystem.converttomodelreference.html\">Model Reference Conversion Advisor<\/a> \u304c Simulink \u306b\u306f\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u5909\u63db\u5f8c\u306b\u4f55\u304b\u3057\u3089\u304c\u671f\u5f85\u3069\u304a\u308a\u306b\u52d5\u4f5c\u3057\u306a\u3044\u3001\u3068\u3044\u3046\u30b1\u30fc\u30b9\u306f\u3088\u304f\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u4f8b\u306b\u306f\u305d\u3046\u3057\u305f\u554f\u984c\u304c\u3044\u304f\u3064\u304b\u542b\u307e\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u77e5\u3063\u3066\u3044\u305f\u305f\u3081\u3001AI \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u8a66\u3059\u306b\u306f\u826f\u3044\u984c\u6750\u3060\u3068\u8003\u3048\u307e\u3057\u305f\u3002<\/p>\n<\/div>\n<\/div>\n<h2 style=\"margin: 20px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: bold; text-align: left;\">\u8a66\u3057\u305f\u7d50\u679c<\/h2>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\n<div>\n<p>\u307e\u305a\u306f\u3001Amp \u304c <a href=\"https:\/\/www.mathworks.com\/products\/matlab-mcp-core-server.html\">MATLAB MCP Server<\/a> \u3068\u306e\u53cd\u5fa9\u51e6\u7406\u3092\u901a\u3058\u3066\u3001\u3053\u306e\u30bf\u30b9\u30af\u3092\u3069\u306e\u3088\u3046\u306b\u9054\u6210\u3057\u305f\u304b\u3092\u793a\u3059\u52d5\u753b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u79c1\u304c\u6307\u793a\u3057\u305f\u5185\u5bb9\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li><strong>\u3084\u308b\u3053\u3068<\/strong>\uff1a<span style=\"font-family: monospace;\">Attitude<\/span> \u3068 <span style=\"font-family: monospace;\">Altitude Control<\/span> \u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u3092\u53c2\u7167\u30e2\u30c7\u30eb\u306b\u5909\u63db\u3059\u308b<\/li>\n<li><strong>\u4eca\u56de\u306e\u76ee\u7684<\/strong>\uff1a\u53c2\u7167\u30e2\u30c7\u30eb\u3092\u30a2\u30af\u30bb\u30e9\u30ec\u30fc\u30bf\u30e2\u30fc\u30c9\u3067\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u3053\u3068\u3067\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u901f\u5ea6\u3092\u5411\u4e0a\u3055\u305b\u308b<\/li>\n<li><strong>\u8981\u4ef6<\/strong>\uff1a\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u5185\u306e\u30d0\u30ea\u30a2\u30f3\u30c8\u3092\u5909\u66f4\u3057\u3066\u3082\u3001\u30a2\u30af\u30bb\u30e9\u30ec\u30fc\u30bf\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u518d\u30d3\u30eb\u30c9\u304c\u767a\u751f\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3044<\/li>\n<\/ul>\n<p>\u307e\u305f\u3001\u6700\u7d42\u7d50\u679c\u304c\u5143\u306e\u30e2\u30c7\u30eb\u3068\u4e00\u81f4\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u691c\u8a3c\u3059\u308b\u305f\u3081\u3001\u307e\u305a\u306f\u30d9\u30fc\u30b9\u30e9\u30a4\u30f3\u30c6\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u3001\u305d\u308c\u3092\u3082\u3068\u306b\u53cd\u5fa9\u3092\u9032\u3081\u308b\u3088\u3046\u63d0\u6848\u3057\u307e\u3057\u305f\u3002<\/p>\n<\/div>\n<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><div class=\"row\"><div class=\"col-xs-12 containing-block\"><div class=\"bc-outer-container add_margin_20\"><videoplayer><div class=\"video-js-container\"><video data-video-id=\"6391680847112\" data-video-category=\"blog\" data-autostart=\"false\" data-account=\"62009828001\" data-omniture-account=\"mathwgbl\" data-player=\"rJ9XCz2Sx\" data-embed=\"default\" id=\"mathworks-brightcove-player\" class=\"video-js\" controls><\/video><script src=\"\/\/players.brightcove.net\/62009828001\/rJ9XCz2Sx_default\/index.min.js\"><\/script><script>if (typeof(playerLoaded) === 'undefined') {var playerLoaded = false;}(function isVideojsDefined() {if (typeof(videojs) !== 'undefined') {videojs(\"mathworks-brightcove-player\").on('loadedmetadata', function() {playerLoaded = true;});} else {setTimeout(isVideojsDefined, 10);}})();<\/script><\/div><\/videoplayer><\/div><\/div><\/div><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\n<div>\n<h2>\u8a73\u7d30<\/h2>\n<p>\u305d\u308c\u3067\u306f\u3001\u3053\u306e\u52d5\u753b\u306e\u4e2d\u3067 AI \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u5b9f\u969b\u306b\u884c\u3063\u305f\u3053\u3068\u3092\u8a73\u3057\u304f\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<\/div>\n<\/div>\n<h3 style=\"margin: 15px 10px 5px 4px; padding: 0px; line-height: 20.4px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: bold; text-align: left;\">Skills<\/h3>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\n<div>\u304a\u6c17\u4ed8\u304d\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001Amp \u306f\u79c1\u304c\u4f5c\u6210\u3057\u305f 3 \u3064\u306e\u30b9\u30ad\u30eb\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306f\u3044\u305a\u308c\u3082\u975e\u5e38\u306b\u57fa\u672c\u7684\u306a\u30b9\u30ad\u30eb\u3067\u3001\u30e2\u30c7\u30eb\u53c2\u7167\u3078\u306e\u5909\u63db\u3092\u652f\u63f4\u3059\u308b\u3053\u3068\u3092\u76ee\u7684\u3068\u3057\u305f\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u4ee5\u4e0b\u306b\u7c21\u5358\u306a\u6982\u8981\u3068\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u7528\u306e\u30ea\u30f3\u30af\u3092\u793a\u3057\u307e\u3059\u3002<\/div>\n<\/div>\n<ul style=\"margin: 10px 0px 20px; padding-left: 0px; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-size: 14px;\">\n<li style=\"margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap;\"><a href=\"https:\/\/github.com\/simulink\/skills\/blob\/main\/simulink-interactions\/SKILL.md\" class=\"external\" rel=\"nofollow\" target=\"_blank\"><span style=\"font-weight: bold;\">simulink-interaction<\/span><\/a><span style=\"font-weight: bold;\">:<\/span> AI \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c Simulink \u4e0a\u3067\u4f55\u304c\u8d77\u304d\u3066\u3044\u308b\u304b\u3092\u628a\u63e1\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306e\u30b9\u30ad\u30eb\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u300cthis block\u300d\u306f <a href=\"https:\/\/www.mathworks.com\/help\/simulink\/slref\/gcb.html\"><span style=\"font-family: monospace;\">gcb<\/span><\/a>\u3001\u300cthis model\u300d\u306f <a href=\"https:\/\/www.mathworks.com\/help\/simulink\/slref\/bdroot.html\"><span style=\"font-family: monospace;\">bdroot<\/span><\/a>\u3001\u300cthis subsystem\u300d\u306f <a href=\"https:\/\/www.mathworks.com\/help\/simulink\/slref\/gcs.html\"><span style=\"font-family: monospace;\">gcs<\/span><\/a> \u3092\u610f\u5473\u3057\u307e\u3059\u3002\u3053\u306e\u30b9\u30ad\u30eb\u304c\u3042\u308b\u3068\u3001\u3088\u308a\u81ea\u7136\u306a\u5f62\u3067\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3068\u300c\u4f1a\u8a71\u300d\u3067\u304d\u308b\u3068\u611f\u3058\u3066\u3044\u307e\u3059\u3002<\/li>\n<li style=\"margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap;\"><a href=\"https:\/\/github.com\/simulink\/skills\/blob\/main\/simulink-simulation\/SKILL.md\" class=\"external\" rel=\"nofollow\" target=\"_blank\"><span style=\"font-weight: bold;\">simulink-simulation<\/span><\/a><span style=\"font-weight: bold;\">:<\/span> \u53e4\u3044 <span style=\"font-family: monospace;\">set_param<\/span> \u3068 <span style=\"font-family: monospace;\">sim(&#8216;modelname&#8217;)<\/span> \u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u306f\u306a\u304f\u3001 <a href=\"http:\/\/simulink.simulationinputhttps\/\/www.mathworks.com\/help\/simulink\/slref\/simulink.simulationinput.html\" class=\"external\" rel=\"nofollow\" target=\"_blank\"><span style=\"font-family: monospace;\">Simulink.SimulationInput<\/span><\/a> \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u69cb\u6587\u3092\u4f7f\u3046\u3088\u3046\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u8a98\u5c0e\u3059\u308b\u305f\u3081\u306e\u30b9\u30ad\u30eb\u3067\u3059\u3002\u5fc5\u9808\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u79c1\u306f\u3053\u306e\u66f8\u304d\u65b9\u306e\u307b\u3046\u304c\u30b3\u30fc\u30c9\u3068\u3057\u3066\u597d\u307f\u3067\u3059\u3002<\/li>\n<li style=\"margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap;\"><a href=\"https:\/\/github.com\/simulink\/skills\/blob\/main\/simulink-baseline-test\/SKILL.md\" class=\"external\" rel=\"nofollow\" target=\"_blank\"><span style=\"font-weight: bold;\">simulink-baseline-test<\/span><\/a><span style=\"font-weight: bold;\">:<\/span> \u3053\u308c\u3082\u5fc5\u9808\u3067\u306f\u306a\u304f\u3001AI \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u30c6\u30b9\u30c8\u3092\u81ea\u529b\u3067\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u79c1\u597d\u307f\u306e setup \u3084 teardown \u3092\u542b\u3081\u308b\u306a\u3069\u3001\u7d30\u304b\u306a\u70b9\u306e\u305f\u3081\u306b\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\u3055\u3089\u306b\u8ffd\u52a0\u306e\u30b9\u30ad\u30eb\u304c\u3042\u308c\u3070\u3001AI \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u4f5c\u696d\u306f\u3055\u3089\u306b\u5bb9\u6613\u306b\u306a\u308a\u3001\u5fc5\u8981\u306a\u30c8\u30fc\u30af\u30f3\u6570\u3082\u6e1b\u308a\u3001\u3088\u308a\u65e9\u304f\u53ce\u675f\u3057\u305f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001\u4eca\u56de\u306e\u5b9f\u9a13\u3067\u89b3\u5bdf\u3057\u305f\u304b\u3063\u305f\u306e\u306f\u3001\u8ffd\u52a0\u306e\u30b9\u30ad\u30eb\u306a\u3057\u3067\u3069\u3053\u307e\u3067\u3046\u307e\u304f\u3067\u304d\u308b\u304b\u3068\u3044\u3046\u70b9\u3067\u3057\u305f\u3002<\/div>\n<h3 style=\"margin: 15px 10px 5px 4px; padding: 0px; line-height: 20.4px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: bold; text-align: left;\">\u30d9\u30fc\u30b9\u30e9\u30a4\u30f3\u30c6\u30b9\u30c8<\/h3>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\n<p>AI \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3067\u3042\u308c\u4eba\u9593\u3067\u3042\u308c\u3001\u5909\u66f4\u3092\u52a0\u3048\u308b\u524d\u306b\u30b7\u30b9\u30c6\u30e0\u306e\u6319\u52d5\u3092\u6349\u3048\u305f\u30d9\u30fc\u30b9\u30e9\u30a4\u30f3\u30c6\u30b9\u30c8\u3092\u7528\u610f\u3057\u3066\u304a\u304f\u3053\u3068\u306f\u91cd\u8981\u3067\u3059\u3002\u3053\u306e\u30b1\u30fc\u30b9\u3067\u306f\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u30e2\u30c7\u30eb\u3092\u89e3\u6790\u3057\u3001\u5909\u6570 <span style=\"font-family: monospace;\">state<\/span> \u304c\u30d0\u30ea\u30a2\u30f3\u30c8\u6761\u4ef6\u3092\u5236\u5fa1\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u7279\u5b9a\u3067\u304d\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u306f\u3001<span style=\"font-family: monospace;\">state<\/span> \u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u30d6\u30ed\u30c3\u30af\u306e\u4e00\u4f8b\u3067\u3059\u3002<\/p>\n<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><img decoding=\"async\" loading=\"lazy\" class=\"imageNode\" style=\"vertical-align: baseline; width: 603px; height: 200px;\" src=\"https:\/\/blogs.mathworks.com\/simulink\/files\/MCP_MdlRef.mlx-03-26-26_3.png\" alt=\"\" width=\"603\" height=\"200\" \/><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\n<p>\u30c6\u30b9\u30c8\u3067\u306f\u3001\u30d0\u30ea\u30a2\u30f3\u30c8\u69cb\u6210\u3054\u3068\u306b 1 \u3064\u306e\u30d9\u30fc\u30b9\u30e9\u30a4\u30f3\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u3001\u30c6\u30b9\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002<\/p>\n<\/div>\n<div class=\"preformatted-matlab\" style=\"margin: 10px 3px 10px 55px; padding: 10px 10px 10px 5px;\">\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\"><span style=\"color: #0e00ff;\">classdef <\/span>HelicopterBaselineTest &lt; sltest.TestCase<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0<span style=\"color: #0e00ff;\">properties <\/span>(Constant)<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ModelName = <span style=\"color: #a709f5;\">&#8216;HelicopterModelingSimulation&#8217;<\/span><\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0RefModelName = <span style=\"color: #a709f5;\">&#8216;AttitudeAltitudeControl&#8217;<\/span><\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0RelTol = 1e-6<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0AbsTol = 1e-8<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0<span style=\"color: #0e00ff;\">end<\/span><\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0<span style=\"color: #0e00ff;\">properties <\/span>(TestParameter)<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0variant = {<span style=\"color: #a709f5;\">&#8216;hover&#8217;<\/span>, <span style=\"color: #a709f5;\">&#8216;level&#8217;<\/span>, <span style=\"color: #a709f5;\">&#8216;path&#8217;<\/span>}<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0<span style=\"color: #0e00ff;\">end<\/span><\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0<span style=\"color: #0e00ff;\">methods <\/span>(Test)<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #0e00ff;\">function <\/span>testVariantMatchesBaseline(testCase, variant)<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0baselineFile = fullfile(fileparts(mfilename(<span style=\"color: #a709f5;\">&#8216;fullpath&#8217;<\/span>)), <span style=\"color: #0e00ff;\">&#8230;<\/span><\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0sprintf(<span style=\"color: #a709f5;\">&#8216;baseline_%s.mat&#8217;<\/span>, variant));<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0testCase.assertTrue(isfile(baselineFile), <span style=\"color: #0e00ff;\">&#8230;<\/span><\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0sprintf(<span style=\"color: #a709f5;\">&#8216;Baseline not found: %s&#8217;<\/span>, baselineFile));<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0in = Simulink.SimulationInput(testCase.ModelName);<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0in = in.setVariable(<span style=\"color: #a709f5;\">&#8216;state&#8217;<\/span>, FlightMode.(variant));<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0out = sim(in);<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0S = load(baselineFile, <span style=\"color: #a709f5;\">&#8216;baselineLogsout&#8217;<\/span>);<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0testCase.verifySignalsMatch(out.logsout, S.baselineLogsout, <span style=\"color: #0e00ff;\">&#8230;<\/span><\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #a709f5;\">&#8216;RelTol&#8217;<\/span>, testCase.RelTol, <span style=\"color: #0e00ff;\">&#8230;<\/span><\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #a709f5;\">&#8216;AbsTol&#8217;<\/span>, testCase.AbsTol);<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #0e00ff;\">end<\/span><\/span><\/div>\n<\/div>\n<h3 style=\"margin: 15px 10px 5px 4px; padding: 0px; line-height: 20.4px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: bold; text-align: left;\">\u30e2\u30c7\u30eb\u53c2\u7167\u3078\u306e\u5909\u63db<\/h3>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\n<p>\u3053\u308c\u306f\u30011 \u884c\u306e\u30b3\u30fc\u30c9\u3067\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<\/div>\n<div class=\"preformatted-matlab\" style=\"margin: 10px 3px 10px 55px; padding: 10px 10px 10px 5px;\">\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">blk = <span style=\"color: #a709f5;\">&#8216;HelicopterModelingSimulation\/Attitude and Altitude Control&#8217;<\/span>;<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">mdlName = <span style=\"color: #a709f5;\">&#8216;AttitudeAltitudeControl&#8217;<\/span>;<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">Simulink.SubSystem.convertToModelReference(blk,mdlName,<span style=\"color: #0e00ff;\">&#8230;<\/span><\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0<span style=\"color: #a709f5;\">&#8220;AutoFix&#8221;<\/span>,true,<span style=\"color: #0e00ff;\">&#8230;<\/span><\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0<span style=\"color: #a709f5;\">&#8220;ReplaceSubsystem&#8221;<\/span>,true,<span style=\"color: #0e00ff;\">&#8230;<\/span><\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0<span style=\"color: #a709f5;\">&#8220;SimulationModes&#8221;<\/span>,<span style=\"color: #a709f5;\">&#8220;Accelerator&#8221;<\/span>,<span style=\"color: #0e00ff;\">&#8230;<\/span><\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0<span style=\"color: #a709f5;\">&#8220;BuildTarget&#8221;<\/span>,<span style=\"color: #a709f5;\">&#8220;Sim&#8221;<\/span>);<\/span><\/div>\n<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\n<p>\u3072\u3068\u3064\u554f\u984c\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u5143\u306e\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u306e\u5883\u754c\u3067\u30ed\u30b0\u53d6\u5f97\u3055\u308c\u3066\u3044\u305f\u4fe1\u53f7\u304c\u3001\u5909\u63db\u306e\u904e\u7a0b\u3067\u5931\u308f\u308c\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3059\u3002\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u3053\u308c\u3092\u7d20\u65e9\u304f\u4fee\u6b63\u3057\u3001\u6b63\u3057\u3044\u4fe1\u53f7\u306b\u5bfe\u3057\u3066\u30ed\u30b0\u53d6\u5f97\u3092\u518d\u5ea6\u6709\u52b9\u5316\u3057\u307e\u3057\u305f\u3002<\/p>\n<div>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n<h3 style=\"margin: 15px 10px 5px 4px; padding: 0px; line-height: 20.4px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: bold; text-align: left;\">\u518d\u30d3\u30eb\u30c9\u306a\u3057\u3067\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30d0\u30ea\u30a2\u30f3\u30c8\u3092\u5909\u66f4\u3059\u308b<\/h3>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\u5143\u306e\u30e2\u30c7\u30eb\u3067\u306f\u3001\u30d0\u30ea\u30a2\u30f3\u30c8\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u306f: <a href=\"https:\/\/www.mathworks.com\/help\/simulink\/var\/activate-variant-during-different-stages-of-simulation-and-code-generation-workflow.html\">Variant Activation Time<\/a> = <a href=\"https:\/\/www.mathworks.com\/help\/simulink\/var\/activate-variant-during-different-stages-of-simulation-and-code-generation-workflow.html#mw_f4f52070-2ab6-42c9-8aa2-86718f057046\">Update Diagram<\/a> \u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><img decoding=\"async\" loading=\"lazy\" class=\"imageNode\" style=\"vertical-align: baseline; width: 523px; height: 218px;\" src=\"https:\/\/blogs.mathworks.com\/simulink\/files\/MCP_MdlRef.mlx-03-26-26_4.png\" alt=\"\" width=\"523\" height=\"218\" \/><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\u3053\u306e\u69cb\u6210\u3067\u306f\u3001\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30d0\u30ea\u30a2\u30f3\u30c8\u304c\u5909\u66f4\u3055\u308c\u308b\u305f\u3073\u306b\u3001\u53c2\u7167\u30e2\u30c7\u30eb\u3092\u518d\u30d3\u30eb\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u518d\u30d3\u30eb\u30c9\u306b\u306f\u6642\u9593\u304c\u304b\u304b\u308b\u305f\u3081\u3001\u3053\u308c\u306f\u907f\u3051\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u3002\u3053\u308c\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u306b\u3001<a href=\"https:\/\/www.mathworks.com\/help\/simulink\/var\/activate-variant-during-different-stages-of-simulation-and-code-generation-workflow.html\">Variant Activation Time<\/a> = <a href=\"https:\/\/www.mathworks.com\/help\/simulink\/var\/activate-variant-during-different-stages-of-simulation-and-code-generation-workflow.html#mw_9f3ca965-7d50-4cb1-9c47-99f759a579cf\">Startup<\/a> \u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\n<p>Startup \u306e\u30a2\u30af\u30c6\u30a3\u30d9\u30fc\u30b7\u30e7\u30f3\u6642\u9593\u306b\u306f\u5236\u7d04\u304c\u3042\u308a\u3001\u305d\u308c\u306b\u3064\u3044\u3066\u306f\u6b21\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u8a73\u3057\u304f\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<a href=\"https:\/\/www.mathworks.com\/help\/simulink\/var\/considerations-and-limitations-for-startup-variant-activation-time.html\">Considerations and Limitations for startup Variant Activation Time &#8211; MATLAB &amp; Simulink<\/a>.<\/p>\n<p>\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u6b21\u306e\u554f\u984c\u306b\u76f4\u9762\u3057\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li>Startup \u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001<span data-teams=\"true\">\u5404\u30d0\u30ea\u30a2\u30f3\u30c8\u3067\u9078\u629e\u3055\u308c\u308b\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u306f\u30a2\u30c8\u30df\u30c3\u30af\u3067\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044<\/span><\/li>\n<li>Startup \u3067\u306f\u3001\u30d0\u30ea\u30a2\u30f3\u30c8\u5236\u5fa1\u5f0f\u306b\u6587\u5b57\u5217\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044<\/li>\n<\/ul>\n<p><span data-teams=\"true\">\u30d0\u30ea\u30a2\u30f3\u30c8\u3067\u9078\u629e\u3055\u308c\u308b\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u3092\u30a2\u30c8\u30df\u30c3\u30af\u306b\u3059\u308b\u3053\u3068\u306f\u7c21\u5358\u3067\u3057\u305f\u3002<\/span>2 \u3064\u76ee\u306e\u5236\u7d04\u306b\u5bfe\u51e6\u3059\u308b\u305f\u3081\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u6587\u5b57\u5217\u306e\u4ee3\u308f\u308a\u306b <strong>\u5217\u6319\u578b<\/strong> \u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3092\u6c7a\u5b9a\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u3001\u79c1\u304c\u30e6\u30fc\u30b6\u30fc\u306b\u5bfe\u3057\u3066\u63a8\u5968\u3059\u308b\u306e\u3068\u307e\u3063\u305f\u304f\u540c\u3058\u5bfe\u5fdc\u3067\u3059\u3002\u4ee5\u4e0b\u306b\u3001\u5de6\u5074\u304c\u5143\u306e\u72b6\u614b\u3001\u53f3\u5074\u304c\u4fee\u6b63\u5f8c\u306e\u72b6\u614b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><img decoding=\"async\" loading=\"lazy\" class=\"imageNode\" style=\"vertical-align: baseline; width: 956px; height: 295px;\" src=\"https:\/\/blogs.mathworks.com\/simulink\/files\/MCP_MdlRef.mlx-03-26-26_5.png\" alt=\"\" width=\"956\" height=\"295\" \/><\/div>\n<h3 style=\"margin: 15px 10px 5px 4px; padding: 0px; line-height: 20.4px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: bold; text-align: left;\">\u518d\u30d3\u30eb\u30c9\u4e0d\u8981\u3068\u3044\u3046\u8981\u4ef6<\/h3>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">Simulink \u306b\u306f\u3001\u53c2\u7167\u30e2\u30c7\u30eb\u304c\u518d\u30d3\u30eb\u30c9\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092 \u30d7\u30ed\u30b0\u30e9\u30e0\u7684\u306b\u5224\u5b9a\u3059\u308b\u305f\u3081\u306e\u5206\u304b\u308a\u3084\u3059\u3044\u65b9\u6cd5\u306f\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u3044\u304f\u3064\u304b\u306e\u624b\u6cd5\u3092\u8a66\u3057\u307e\u3057\u305f\u3002<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\n<div>\n<ul>\n<li>MATLAB \u306e\u30d9\u30fc\u30b9\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u306e diary \u3092\u8a18\u9332\u3057\u3001\u30d3\u30eb\u30c9\u30b5\u30de\u30ea\u30fc\u3092\u89e3\u6790\u3059\u308b<\/li>\n<li><a href=\"http:\/\/simulink.blockdiagram.getchecksumhttps\/\/www.mathworks.com\/help\/simulink\/slref\/simulink.blockdiagram.getchecksum.html\" class=\"external\" rel=\"nofollow\" target=\"_blank\">Simulink.BlockDiagram.getChecksum<\/a> \u306e\u51fa\u529b\u3092\u6bd4\u8f03\u3059\u308b<\/li>\n<li>\u53c2\u7167\u30e2\u30c7\u30eb\u306e mex \u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066 dir \u3092\u5b9f\u884c\u3057\u3001\u305d\u306e\u623b\u308a\u5024\u306e datenum \u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u6bd4\u8f03\u3059\u308b<\/li>\n<\/ul>\n<p>\u6700\u7d42\u7684\u306b\u6700\u5f8c\u306e\u65b9\u6cd5\u306b\u843d\u3061\u7740\u304d\u307e\u3057\u305f\u3002\u79c1\u3068\u3057\u3066\u3082\u3053\u306e\u65b9\u6cd5\u3067\u554f\u984c\u306a\u304f\u3001\u5341\u5206\u306b\u4fe1\u983c\u3067\u304d\u308b\u3082\u306e\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<\/div>\n<\/div>\n<div class=\"preformatted-matlab\" style=\"margin: 10px 3px 10px 55px; padding: 10px 10px 10px 5px;\">\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #0e00ff;\">function <\/span>testNoRebuildOnVariantChange(testCase)<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0variants = {FlightMode.hover, FlightMode.level, FlightMode.path};<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #008013;\">% First simulation \u2014 cold build may occur<\/span><\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0in = Simulink.SimulationInput(testCase.ModelName);<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0in = in.setVariable(<span style=\"color: #a709f5;\">&#8216;state&#8217;<\/span>, variants{1});<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0in = in.setModelParameter(<span style=\"color: #a709f5;\">&#8216;StopTime&#8217;<\/span>, <span style=\"color: #a709f5;\">&#8216;0&#8217;<\/span>);<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0sim(in);<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #008013;\">% Record the MEX file timestamp after first build<\/span><\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0mexFile = which([testCase.RefModelName <span style=\"color: #a709f5;\">&#8216;_msf&#8217;<\/span>]);<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0testCase.assertNotEmpty(mexFile, <span style=\"color: #0e00ff;\">&#8230;<\/span><\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #a709f5;\">&#8216;Accelerator MEX target not found after first simulation.&#8217;<\/span>);<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0d = dir(mexFile);<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0timestampAfterBuild = d.datenum;<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #008013;\">% Simulate with remaining variants and verify no rebuild<\/span><\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #0e00ff;\">for <\/span>v = 2:numel(variants)<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0in = Simulink.SimulationInput(testCase.ModelName);<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0in = in.setVariable(<span style=\"color: #a709f5;\">&#8216;state&#8217;<\/span>, variants{v});<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0in = in.setModelParameter(<span style=\"color: #a709f5;\">&#8216;StopTime&#8217;<\/span>, <span style=\"color: #a709f5;\">&#8216;0&#8217;<\/span>);<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0sim(in);<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0d = dir(mexFile);<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0testCase.verifyEqual(d.datenum, timestampAfterBuild, <span style=\"color: #0e00ff;\">&#8230;<\/span><\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0sprintf(<span style=\"color: #a709f5;\">&#8216;Accelerator target was rebuilt when switching to variant %d.&#8217;<\/span>, v));<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #0e00ff;\">end<\/span><\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #0e00ff;\">end<\/span><\/span><\/div>\n<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\u52d5\u753b\u3092\u6ce8\u610f\u6df1\u304f\u898b\u3066\u3044\u308b\u3068\u5206\u304b\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u30c6\u30b9\u30c8\u3092\u3088\u308a\u77ed\u6642\u9593\u3067\u5b8c\u4e86\u3055\u305b\u308b\u305f\u3081\u306b\u3001\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u5168\u4f53\u3092\u5b9f\u884c\u3059\u308b\u4ee3\u308f\u308a\u306b\u3001\u505c\u6b62\u6642\u9593\u3092\u30bc\u30ed\u306b\u3057\u3066\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u3068\u3044\u3046\u5c0f\u3055\u306a\u4fee\u6b63\u3092\u79c1\u304c\u4f9d\u983c\u3057\u307e\u3057\u305f\u3002\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u305d\u308c\u3092\u5373\u5ea7\u306b\u9069\u7528\u3057\u307e\u3057\u305f\u3002<\/div>\n<h3 style=\"margin: 15px 10px 5px 4px; padding: 0px; line-height: 20.4px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: bold; text-align: left;\">\u307e\u3068\u3081<\/h3>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\u5168\u4f53\u3068\u3057\u3066\u3001\u3053\u306e\u30d7\u30ed\u30bb\u30b9\u306b\u306f\u3068\u3066\u3082\u6e80\u8db3\u3057\u3066\u3044\u307e\u3059\u3002\u660e\u78ba\u306b\u5b9a\u7fa9\u3055\u308c\u305f\u30b9\u30ad\u30eb\u304c\u3042\u308c\u3070\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u3082\u3063\u3068\u77ed\u6642\u9593\u3067\u3001\u3088\u308a\u5c11\u306a\u3044\u30c8\u30fc\u30af\u30f3\u6570\u3067\u4f5c\u696d\u3067\u304d\u305f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u305d\u308c\u3067\u3082\u30bf\u30b9\u30af\u306f\u6210\u529f\u3057\u307e\u3057\u305f\u3002\u305d\u3057\u3066\u3001\u540c\u3058\u4f5c\u696d\u3092\u79c1\u81ea\u8eab\u304c\u624b\u4f5c\u696d\u3067\u884c\u3046\u3088\u308a\u3082\u901f\u304f\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002<\/div>\n<h3 style=\"margin: 15px 10px 5px 4px; padding: 0px; line-height: 20.4px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: bold; text-align: left;\">\u6b21\u306f\u3042\u306a\u305f\u306e\u756a\u3067\u3059<\/h3>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\u79c1\u304c AI \u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3068 Simulink \u306b\u95a2\u3059\u308b\u5b9f\u9a13\u3092\u5171\u6709\u3057\u3066\u3044\u308b\u306e\u306f\u3001\u3053\u306e\u30d6\u30ed\u30b0\u306e\u8aad\u8005\u306e\u591a\u304f\u304c\u65b0\u3057\u3044\u6280\u8853\u3092\u3044\u3061\u65e9\u304f\u53d6\u308a\u5165\u308c\u308b\u30bf\u30a4\u30d7\u3067\u3042\u308a\u3001Simulink \u304c\u3053\u306e\u65b0\u3057\u3044\u4e16\u754c\u306b\u3069\u306e\u3088\u3046\u306b\u9069\u5408\u3059\u308b\u306e\u304b\u3092\u65e9\u304f\u77e5\u308a\u305f\u3044\u3068\u8003\u3048\u3066\u3044\u308b\u3068\u5206\u304b\u3063\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002\u3082\u3057\u8208\u5473\u3068\u610f\u6b32\u304c\u3042\u308c\u3070\u3001\u672c\u8a18\u4e8b\u3084<a href=\"https:\/\/blogs.mathworks.com\/japan-community\/2026\/03\/18\/simulink-and-simscape-modeling-using-claude-code-and-the-matlab-mcp-server-jp\/?from=jp\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u3067\u7d39\u4ecb\u3057\u305f\u3053\u3068\u306f\u3001\u5c11\u3057\u306e\u300c\u81ea\u4f5c\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u300d\u306b\u3088\u3063\u3066\u3001\u4eca\u65e5\u3059\u3050\u306b\u3067\u3082\u5b9f\u73fe\u53ef\u80fd\u3067\u3059\u3002<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\n<p>\u4e00\u65b9\u3067\u3001\u3082\u3046\u5c11\u3057\u5f85\u3061\u305f\u3044\u3068\u3044\u3046\u65b9\u306e\u305f\u3081\u306b\u8a00\u3046\u3068\u3001\u591a\u304f\u306e\u540c\u50da\u304c\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u578b\u30c4\u30fc\u30eb\u3084\u6a5f\u80fd\u306e\u958b\u767a\u306b\u7a4d\u6975\u7684\u306b\u53d6\u308a\u7d44\u3093\u3067\u304a\u308a\u3001Simulink \u306e\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u306b\u5b8c\u5168\u306b\u7d71\u5408\u3055\u308c\u305f\u5f62\u3067\u3001\u8fd1\u3044\u3046\u3061\u306b\u63d0\u4f9b\u3055\u308c\u308b\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img src=\"https:\/\/blogs.mathworks.com\/japan-community\/files\/2026\/04\/MdlRefClaude.png\" class=\"img-responsive attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/div>\n<p>\n\u203b\u3053\u306e\u6295\u7a3f\u306f 2026 \u5e74 3 \u6708 26 \u65e5\u306b  Guy on Simulink \u3078 \u6295\u7a3f\u3055\u308c\u305f\u3082\u306e\u306e\u6284\u8a33\u3067\u3059\u3002<\/p>\n<p>&#8212;<\/p>\n<p>AI \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u4f7f\u3044\u59cb\u3081\u308b\u3068\u3001\u306a\u304b\u306a\u304b\u3084\u3081\u3089\u308c\u306a\u304f\u306a\u308a\u307e\u3059\u306d\uff01<\/p>\n<p>\u4eca\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001Sourcegraph \u304c\u958b\u767a\u3057\u305f AI \u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3067\u3001Claude Code \u3068\u4f3c\u305f\u5b58\u5728\u3067\u3042\u308b Amp \u3092\u4f7f\u3063\u3066\u3001\u79c1\u304c Simulink&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/japan-community\/2026\/04\/08\/refactoring-a-simulink-model-using-the-matlab-mcp-server-jp\/\">read more >><\/a><\/p>\n","protected":false},"author":159,"featured_media":14512,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[182,61,193],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/posts\/14503"}],"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\/159"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/comments?post=14503"}],"version-history":[{"count":8,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/posts\/14503\/revisions"}],"predecessor-version":[{"id":14511,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/posts\/14503\/revisions\/14511"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/media\/14512"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/media?parent=14503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/categories?post=14503"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/tags?post=14503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}