{"id":8532,"date":"2023-03-17T16:38:02","date_gmt":"2023-03-17T07:38:02","guid":{"rendered":"https:\/\/blogs.mathworks.com\/japan-community\/?p=8532"},"modified":"2023-03-17T16:38:02","modified_gmt":"2023-03-17T07:38:02","slug":"function-handles-are-faster-in-matlab-r2023a-jp","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/japan-community\/2023\/03\/17\/function-handles-are-faster-in-matlab-r2023a-jp\/","title":{"rendered":"MATLAB R2023a \u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\uff1a\u95a2\u6570\u30cf\u30f3\u30c9\u30eb\u306e\u9ad8\u901f\u5316"},"content":{"rendered":"<p>\u203b\u3053\u306e\u6295\u7a3f\u306f 2023 \u5e74 3 \u6708 16 \u65e5\u306b The MATLAB blog (<a class=\"author_inline\" href=\"https:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/20789457?s_tid=blg_to_profile\" data-locale-id=\"ja\">Mike Croucher<\/a>) \u306b<a href=\"https:\/\/blogs.mathworks.com\/matlab\/2023\/03\/16\/function-handles-are-faster-in-matlab-r2023a\/?from=jp\">\u6295\u7a3f<\/a>\u3055\u308c\u305f\u3082\u306e\u306e\u6284\u8a33\u3067\u3059\u3002<\/p>\n<div>\n<hr \/>\n<\/div>\n<div class=\"rtcContent\">\n<div>MathWorks \u304c MATLAB \u306e\u51e6\u7406\u901f\u5ea6\u3092\u4e0a\u3052\u308b\u65b9\u6cd5\u306f\u5927\u304d\u304f\u5206\u3051\u3066 2 \u3064\u3042\u308a\u307e\u3059\u3002\u500b\u3005\u306e\u95a2\u6570\u306b\u6f5c\u308a\u8fbc\u3093\u3067\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3092\u9664\u53bb\u3057\u305f\u308a\u3001\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u6539\u5584\u3057\u305f\u308a\u3059\u308b\u65b9\u6cd5\u3068\u3001MATLAB \u8a00\u8a9e\u81ea\u4f53\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u3066\u9ad8\u901f\u5316\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/div>\n<div>\u4eca\u65e5\u306f\u3001R2023a \u30ea\u30ea\u30fc\u30b9\u3067\u95a2\u6570\u30cf\u30f3\u30c9\u30eb\u306e\u9ad8\u901f\u5316\u304c\u884c\u308f\u308c\u305f\u3001\u5f8c\u8005\u306e\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<h1>\u95a2\u6570\u30cf\u30f3\u30c9\u30eb\u3063\u3066\u4f55\uff1f<\/h1>\n<div><a href=\"https:\/\/jp.mathworks.com\/help\/matlab\/function-handles.html\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u304b\u3089\u305d\u306e\u307e\u307e\u5f15\u7528\u3059\u308b\u3068\u30fb\u30fb\u300c\u95a2\u6570\u30cf\u30f3\u30c9\u30eb\u306f\u3001\u95a2\u6570\u3092\u8868\u3059 MATLAB<sup>\u00ae<\/sup>\u00a0\u30c7\u30fc\u30bf\u578b\u3067\u3059\u3002\u4e00\u822c\u306b\u3001\u95a2\u6570\u30cf\u30f3\u30c9\u30eb\u306f\u95a2\u6570\u3092\u5225\u306e\u95a2\u6570\u306b\u6e21\u3059\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u95a2\u6570\u30cf\u30f3\u30c9\u30eb\u306f\u3001\u6240\u5b9a\u306e\u5024\u306e\u7bc4\u56f2\u306b\u5bfe\u3057\u3066\u6570\u5f0f\u3092\u8a55\u4fa1\u3059\u308b\u95a2\u6570\u306e\u5165\u529b\u5f15\u6570\u3068\u3057\u3066\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u300d<\/div>\n<div>\u4f8b\u3048\u3070\u3001\u3053\u3093\u306a\u95a2\u6570\u304c\u3042\u3063\u305f\u3068\u3057\u307e\u3059\u3002<\/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;\">function <\/span>y = computeSquare(x)<\/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;\">y = x.^2;<\/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;\"><span style=\"color: #0e00ff;\">end<\/span><\/span><\/div>\n<\/div>\n<div>\u3053\u306e\u95a2\u6570\u306b\u305f\u3044\u3057\u3066\u95a2\u6570\u30cf\u30f3\u30c9\u30eb\u3092\u4f5c\u3063\u3066\u3001<\/div>\n<div style=\"background-color: #f5f5f5; margin: 10px 0 10px 0;\">\n<div class=\"inlineWrapper outputs\">\n<div style=\"border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px; border: 1px solid #d9d9d9;\"><span style=\"white-space: pre;\">f = @computeSquare<\/span><\/div>\n<div style=\"color: #212121; padding: 10px 0px 6px 17px; background: #ffffff none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px;\">\n<div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" style=\"width: 1146px; white-space: pre; font-style: normal; color: #212121; font-size: 12px;\" data-testid=\"output_0\">\n<div class=\"textElement eoOutputContent\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: #212121; font-size: 12px;\" data-previous-available-width=\"1116\" data-previous-scroll-height=\"35\" data-hashorizontaloverflow=\"false\">\n<div style=\"white-space: pre; font-style: normal; color: #212121; font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: #212121; font-size: 12px;\">\u5024\u3092\u3082\u3064 f = <span class=\"headerElement\" style=\"white-space: pre; font-style: normal; color: #212121; font-size: 12px;\">function_handle:<\/span><\/span><\/div>\n<div style=\"white-space: pre; font-style: normal; color: #212121; font-size: 12px;\">@computeSquare<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div>4 \u306e\u4e8c\u4e57\u3092\u3053\u3093\u306a\u611f\u3058\u3067\u8a08\u7b97\u3067\u304d\u307e\u3059\u3002<\/div>\n<div style=\"background-color: #f5f5f5; margin: 10px 0 10px 0;\">\n<div class=\"inlineWrapper outputs\">\n<div style=\"border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px; border: 1px solid #d9d9d9;\"><span style=\"white-space: pre;\">b = f(4)<\/span><\/div>\n<div style=\"color: #212121; padding: 10px 0px 6px 17px; background: #ffffff none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px;\">\n<div class=\"variableElement\" style=\"font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px;\">b = 16<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div>\u3053\u306e\u300c\u305d\u308c\u304c\u3069\u3046\u3057\u305f\u30fb\u30fb\u300d\u7684\u306b\u898b\u3048\u308b\u6a5f\u80fd\u306f\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3001MATLAB \u30b3\u30fc\u30c9\u306e\u3044\u305f\u308b\u3068\u3053\u308d\u3067\u4f7f\u308f\u308c\u3066\u3044\u308b\u306e\u3092\u898b\u304b\u3051\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<h1>\u95a2\u6570\u30cf\u30f3\u30c9\u30eb\u306e\u901f\u5ea6\u30c1\u30a7\u30c3\u30af<\/h1>\n<div>\u95a2\u6570\u30cf\u30f3\u30c9\u30eb\u3092\u4f7f\u3063\u3066\u3001\u7d50\u679c\u3092\u4fdd\u5b58\u305b\u305a\u306b 1 \u5104\u500b\u306e\u6570\u5b57\u306e\u4e8c\u4e57\u3092\u8a08\u7b97\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u7279\u306b\u610f\u5473\u306e\u306a\u3044\u8a08\u7b97\u3067\u3059\u304c\u3001R2023a \u3067\u95a2\u6570\u30cf\u30f3\u30c9\u30eb\u306e\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u5927\u5e45\u306b\u524a\u6e1b\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/div>\n<div style=\"background-color: #f5f5f5; margin: 10px 0 10px 0;\">\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 1px solid #d9d9d9; border-bottom: 0px none #212121; border-radius: 4px 4px 0px 0px; padding: 6px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\">n = 1e8;<\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\">tic<\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\"><span style=\"color: #0e00ff;\">for <\/span>i = 1:n<\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\"> out = f(i);<\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\"><span style=\"color: #0e00ff;\">end<\/span><\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper outputs\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 1px solid #d9d9d9; border-radius: 0px; padding: 0px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\">t = toc<\/span><\/div>\n<div style=\"color: #212121; padding: 10px 0px 6px 17px; background: #ffffff none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px;\">\n<div class=\"variableElement\" style=\"font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px;\">t = 0.7665<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div>\u79c1\u306e PC \u3067\u306f\u3053\u3093\u306a\u7d50\u679c\u3067\u3057\u305f\u3002<\/div>\n<ul style=\"margin: 10px 0px 20px; padding-left: 0px; font-family: 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;\">R2022b: 33 seconds<\/li>\n<li style=\"margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap;\">R2023a: 0.77 seconds<\/li>\n<\/ul>\n<div><strong>R2023a \u3067 40 \u500d\u5f37\u306e\u9ad8\u901f\u5316\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/strong>\u30d1\u30b9\u3084\u30ed\u30fc\u30ab\u30eb\u95a2\u6570\u3078\u306e\u95a2\u6570\u30cf\u30f3\u30c9\u30eb\u306f\u76f4\u63a5\u306e\u95a2\u6570\u547c\u3073\u51fa\u3057\u3068\u540c\u3058\u304f\u3089\u3044\u306b\u9ad8\u901f\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/div>\n<div>\u3082\u3046\u5c11\u3057\u73fe\u5b9f\u7684\u306a\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<h1>\u95a2\u6570\u30cf\u30f3\u30c9\u30eb\u306e\u9ad8\u901f\u5316 = ODE \u30bd\u30eb\u30d0\u30fc\u306e\u9ad8\u901f\u5316<\/h1>\n<div>\u3053\u306e\u4f8b\u306f\u3001<span style=\"font-family: monospace;\">bench<\/span> \u30b3\u30de\u30f3\u30c9\u5185\u3067\u8a55\u4fa1\u3055\u308c\u308b\u95a2\u6570\u304b\u3089\u53d6\u3063\u3066\u304d\u3066\u3044\u307e\u3059\u3002<span style=\"font-family: monospace;\">vanderpol <\/span>\u95a2\u6570\u306f <span style=\"font-family: monospace;\">bench <\/span>\u306e\u6700\u5f8c\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u304a\u308a\u3001\u3053\u3053\u3067\u306f<span style=\"font-family: monospace;\">@vanderpol <\/span>\u3068\u3044\u3046\u30cf\u30f3\u30c9\u30eb\u540d\u3067\u547c\u3073\u51fa\u3057\u3066\u3044\u307e\u3059\u3002\u8a08\u7b97\u3092 5 \u56de\u7e70\u308a\u8fd4\u3057\u3001\u4e00\u756a\u826f\u3044\u7d50\u679c\u3092\u53d6\u3063\u3066\u3044\u307e\u3059\u3002<\/div>\n<div style=\"background-color: #f5f5f5; margin: 10px 0 10px 0;\">\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 1px solid #d9d9d9; border-bottom: 0px none #212121; border-radius: 4px 4px 0px 0px; padding: 6px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\"><span style=\"color: #008013;\">% ODE. van der Pol equation, mu = 1<\/span><\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\">y0 = [2; 0]; <\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\">tspan = [0 20000];<\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\">numRepeats = 5; <span style=\"color: #008013;\">% Number of times I&#8217;ll repeat the computation. I&#8217;ll later only report the best one.<\/span><\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\">t = zeros(1,numRepeats); <span style=\"color: #008013;\">% Store the timing results<\/span><\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\"><span style=\"color: #0e00ff;\">for <\/span>count=1:numRepeats<\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\">tic<\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\">[s,y] = ode45(@vanderpol,tspan,y0);<\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\">t(count) = toc;<\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\"><span style=\"color: #0e00ff;\">end<\/span><\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper outputs\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 1px solid #d9d9d9; border-radius: 0px; padding: 0px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\">fprintf(<span style=\"color: #a709f5;\">&#8220;ode45 best time is %.2f seconds\\n&#8221;<\/span>,min(t))<\/span><\/div>\n<div style=\"color: #212121; padding: 10px 0px 6px 17px; background: #ffffff none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px;\">\n<div class=\"inlineElement eoOutputWrapper embeddedOutputsTextElement\" style=\"width: 1146px; white-space: pre; font-style: normal; color: #212121; font-size: 12px;\" data-testid=\"output_3\">\n<div class=\"textElement eoOutputContent\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: #212121; font-size: 12px;\" data-previous-available-width=\"1116\" data-previous-scroll-height=\"17\" data-hashorizontaloverflow=\"false\">ode45 best time is 0.21 seconds<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<ul style=\"margin: 10px 0px 20px; padding-left: 0px; font-family: 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;\">R2022b: 0.4 seconds<\/li>\n<li style=\"margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap;\">R2023a: 0.21 seconds<\/li>\n<\/ul>\n<div>\u307b\u307c 2 \u500d\u306e\u30b9\u30d4\u30fc\u30c9\u30a2\u30c3\u30d7\u3067\u3059\u3002\u3053\u308c\u306f\u3001\u5148\u306b\u898b\u305f 40 \u500d\u306e\u30b9\u30d4\u30fc\u30c9\u30a2\u30c3\u30d7\u306b\u306f\u7a0b\u9060\u3044\u3067\u3059\u304c\u3001 <span style=\"font-family: monospace;\">ode45<\/span> \u3067\u306f\u95a2\u6570\u547c\u3073\u51fa\u3057\u4ee5\u5916\u306b\u3082\u3044\u308d\u3044\u308d\u306a\u3053\u3068\u304c\u884c\u308f\u308c\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u306d\u3002<\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<h1>\u6700\u9069\u5316\u30bd\u30eb\u30d0\u30fc\u306f\u3069\u3046\u3060\u308d\u3046\uff1f<\/h1>\n<div>\u4ed6\u306b\u3082\u3001\u95a2\u6570\u30cf\u30f3\u30c9\u30eb\u3092\u4f55\u5ea6\u3082\u4f7f\u3046\u3088\u3046\u306a\u3082\u306e\u306f\u3042\u308b\u7a0b\u5ea6\u9ad8\u901f\u5316\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002ODE \u306e\u6b21\u306b\u8003\u3048\u305f\u306e\u306f\u6700\u9069\u5316\u3002\u6700\u9069\u5316\u51e6\u7406\u3067\u3082\u76ee\u7684\u95a2\u6570\u304c\u4f55\u5ea6\u3082\u547c\u3070\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001<a href=\"https:\/\/jp.mathworks.com\/help\/gads\/simulated-annealing.html\">\u30b7\u30df\u30e5\u30ec\u30fc\u30c6\u30c3\u30c9\u30a2\u30cb\u30fc\u30ea\u30f3\u30b0<\/a>\u3092\u4f7f\u3063\u305f Global Optimisation Toolbox \u306e\u7c21\u5358\u306a\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/div>\n<div style=\"background-color: #f5f5f5; margin: 10px 0 10px 0;\">\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 1px solid #d9d9d9; border-bottom: 0px none #212121; border-radius: 4px 4px 0px 0px; padding: 6px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\">numRepeats = 5; <span style=\"color: #008013;\">% Number of times I&#8217;ll repeat the computation. I&#8217;ll later only report the best one.<\/span><\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\">t = zeros(1,numRepeats); <span style=\"color: #008013;\">% Store the timing results<\/span><\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\"><span style=\"color: #0e00ff;\">for <\/span>count=1:numRepeats<\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\">rng <span style=\"color: #a709f5;\">default<\/span><\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\">x0 = [0.5 0.5];<\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\">tic;[x,fval,exitFlag,output] = simulannealbnd(@objective,x0);<\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\">t(count) = toc;<\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper outputs\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 1px solid #d9d9d9; border-radius: 0px; padding: 0px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\"><span style=\"color: #0e00ff;\">end<\/span><\/span><\/div>\n<div style=\"color: #212121; padding: 10px 0px 6px 17px; background: #ffffff none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px;\">\n<div class=\"inlineElement eoOutputWrapper embeddedOutputsTextElement\" style=\"width: 1146px; white-space: pre; font-style: normal; color: #212121; font-size: 12px;\" data-testid=\"output_4\">\n<div class=\"textElement eoOutputContent\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: #212121; font-size: 12px;\" data-previous-available-width=\"1116\" data-previous-scroll-height=\"76\" data-hashorizontaloverflow=\"false\">Optimization terminated: change in best function value less than options.FunctionTolerance.<br \/>\nOptimization terminated: change in best function value less than options.FunctionTolerance.<br \/>\nOptimization terminated: change in best function value less than options.FunctionTolerance.<br \/>\nOptimization terminated: change in best function value less than options.FunctionTolerance.<br \/>\nOptimization terminated: change in best function value less than options.FunctionTolerance.<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div>5 \u56de\u5b9f\u884c\u3057\u305f\u4e2d\u3067\u4e00\u756a\u901f\u304b\u3063\u305f\u3082\u306e\u306f\u30fb\u30fb<\/div>\n<div style=\"background-color: #f5f5f5; margin: 10px 0 10px 0;\">\n<div class=\"inlineWrapper outputs\">\n<div style=\"border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px; border: 1px solid #d9d9d9;\"><span style=\"white-space: pre;\">fprintf(<span style=\"color: #a709f5;\">&#8220;Simulated annealing best time is %.2f seconds\\n&#8221;<\/span>,min(t))<\/span><\/div>\n<div style=\"color: #212121; padding: 10px 0px 6px 17px; background: #ffffff none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px;\">\n<div class=\"inlineElement eoOutputWrapper embeddedOutputsTextElement\" style=\"width: 1146px; white-space: pre; font-style: normal; color: #212121; font-size: 12px;\" data-testid=\"output_5\">\n<div class=\"textElement eoOutputContent\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: #212121; font-size: 12px;\" data-previous-available-width=\"1116\" data-previous-scroll-height=\"17\" data-hashorizontaloverflow=\"false\">Simulated annealing best time is 0.16 seconds<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div>\u3067\u4f55\u56de\u95a2\u6570\u304c\u547c\u3070\u308c\u3066\u3044\u308b\u304b\u3068\u3044\u3046\u3068\u30fb\u30fb<\/div>\n<div style=\"background-color: #f5f5f5; margin: 10px 0 10px 0;\">\n<div class=\"inlineWrapper outputs\">\n<div style=\"border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px; border: 1px solid #d9d9d9;\"><span style=\"white-space: pre;\">fprintf(<span style=\"color: #a709f5;\">&#8220;The optimiser made %d function calls\\n&#8221;<\/span>,output.funccount);<\/span><\/div>\n<div style=\"color: #212121; padding: 10px 0px 6px 17px; background: #ffffff none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px;\">\n<div class=\"inlineElement eoOutputWrapper embeddedOutputsTextElement\" style=\"width: 1146px; white-space: pre; font-style: normal; color: #212121; font-size: 12px;\" data-testid=\"output_6\">\n<div class=\"textElement eoOutputContent\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: #212121; font-size: 12px;\" data-previous-available-width=\"1116\" data-previous-scroll-height=\"17\" data-hashorizontaloverflow=\"false\">The optimiser made 2971 function calls<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>R2022b \u3068 R2023a \u3067\u306e\u7d50\u679c\u306f\u3053\u3061\u3089\u3002<\/p>\n<div class=\"rtcContent\">\n<ul style=\"margin: 10px 0px 20px; padding-left: 0px; font-family: 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;\">R2022b: 0.19 seconds<\/li>\n<li style=\"margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap;\">R2023a: 0.16 seconds<\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><\/div>\n<div>\u6b8b\u5ff5\u306a\u304c\u3089\u3042\u307e\u308a\u901f\u304f\u306a\u3063\u3066\u3044\u307e\u305b\u3093\u306d\u3002\u95a2\u6570\u30cf\u30f3\u30c9\u30eb\u306e\u9ad8\u901f\u5316\u3067\u306f\u9055\u3044\u304c\u3067\u306a\u3044\u4f8b\u3067\u3057\u305f\u30023000 \u56de\u306e\u76ee\u7684\u95a2\u6570\u8a55\u4fa1\u3067\u7bc0\u7d04\u3067\u304d\u308b\u95a2\u6570\u30cf\u30f3\u30c9\u30eb\u306e\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u306f\u3001\u79c1\u306e PC \u3067\u306f0.01 \u79d2\u306b\u3082\u6e80\u305f\u306a\u3044\u3068\u4e88\u60f3\u3057\u3066\u307e\u3059\u304c\u3001\u901f\u304f\u306a\u3063\u3066\u308b\u3053\u3068\u306f\u78ba\u304b\u3067\u3059\u306d\u3002<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<h1>\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u304a\u5f85\u3061\u3057\u3066\u3044\u307e\u3059<\/h1>\n<div class=\"rtcContent\">\n<div>\u95a2\u6570\u30cf\u30f3\u30c9\u30eb\u3092\u591a\u7528\u3059\u308b\u30b3\u30fc\u30c9\u3067\u9ad8\u901f\u5316\u3092\u5b9f\u611f\u3057\u3066\u3044\u308b\u3082\u306e\u304c\u3042\u308c\u3070\u3001\u30b3\u30e1\u30f3\u30c8\u6b04\u3084\u30c4\u30a4\u30c3\u30bf\u30fc\u3067\u662f\u975e\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<div style=\"background-color: #f5f5f5; margin: 10px 0 10px 0;\">\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 1px solid #d9d9d9; border-bottom: 0px none #212121; border-radius: 4px 4px 0px 0px; padding: 6px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\"><span style=\"color: #0e00ff;\">function <\/span>y = computeSquare(x)<\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\"><span style=\"color: #008013;\">%Used to show function handle overheads<\/span><\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\">y = x.^2;<\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\"><span style=\"color: #0e00ff;\">end<\/span><\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\"><span style=\"color: #0e00ff;\">function <\/span>dydt = vanderpol(~,y)<\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\"><span style=\"color: #008013;\">%VANDERPOL Evaluate the van der Pol ODEs for mu = 1<\/span><\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\"><span style=\"color: #008013;\">%used for the ode45 demo<\/span><\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\">dydt = [y(2); (1-y(1)^2)*y(2)-y(1)];<\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\"><span style=\"color: #0e00ff;\">end<\/span><\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\"><span style=\"color: #0e00ff;\">function <\/span>y = objective(x)<\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\"><span style=\"color: #008013;\">%used for simulated annealing demo<\/span><\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\">y = (4-2.1.*x(1).^2+x(1).^4.\/3).*x(1).^2+x(1).*x(2)+(-4+4.*x(2).^2).*x(2).^2;<\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 0px none #212121; border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><span style=\"white-space: pre;\"><span style=\"color: #0e00ff;\">end<\/span><\/span><\/div>\n<\/div>\n<div class=\"inlineWrapper\">\n<div style=\"border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-top: 0px none #212121; border-bottom: 1px solid #d9d9d9; border-radius: 0px 0px 4px 4px; padding: 0px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 14px;\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u203b\u3053\u306e\u6295\u7a3f\u306f 2023 \u5e74 3 \u6708 16 \u65e5\u306b The MATLAB blog (Mike Croucher) \u306b\u6295\u7a3f\u3055\u308c\u305f\u3082\u306e\u306e\u6284\u8a33\u3067\u3059\u3002<\/p>\n<p>MathWorks \u304c MATLAB \u306e\u51e6\u7406\u901f\u5ea6\u3092\u4e0a\u3052\u308b\u65b9\u6cd5\u306f\u5927\u304d\u304f\u5206\u3051\u3066 2 \u3064\u3042\u308a\u307e\u3059\u3002\u500b\u3005\u306e\u95a2\u6570\u306b\u6f5c\u308a\u8fbc\u3093\u3067\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3092\u9664\u53bb\u3057\u305f\u308a\u3001\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u6539\u5584\u3057\u305f\u308a\u3059\u308b\u65b9\u6cd5\u3068\u3001MATLAB&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/japan-community\/2023\/03\/17\/function-handles-are-faster-in-matlab-r2023a-jp\/\">read more >><\/a><\/p>\n","protected":false},"author":159,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[135,61],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/posts\/8532"}],"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=8532"}],"version-history":[{"count":13,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/posts\/8532\/revisions"}],"predecessor-version":[{"id":8571,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/posts\/8532\/revisions\/8571"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/media?parent=8532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/categories?post=8532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/japan-community\/wp-json\/wp\/v2\/tags?post=8532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}