{"id":163,"date":"2021-02-21T19:35:00","date_gmt":"2021-02-21T11:35:00","guid":{"rendered":"http:\/\/47.107.115.238\/?p=163"},"modified":"2024-08-30T19:36:21","modified_gmt":"2024-08-30T11:36:21","slug":"matlab","status":"publish","type":"post","link":"https:\/\/lxylp.com\/?p=163","title":{"rendered":"matlab"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_69_1 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/lxylp.com\/?p=163\/#Install_matlab\" title=\"Install matlab:\">Install matlab:<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/lxylp.com\/?p=163\/#%E5%9B%BE%E5%BD%A2%E7%95%8C%E9%9D%A2\" title=\"\u56fe\u5f62\u754c\u9762\">\u56fe\u5f62\u754c\u9762<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/lxylp.com\/?p=163\/#%E9%9D%99%E9%BB%98%E5%AE%89%E8%A3%85\" title=\"\u9759\u9ed8\u5b89\u88c5\">\u9759\u9ed8\u5b89\u88c5<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/lxylp.com\/?p=163\/#%E5%AD%A6%E7%94%9F%E7%89%88%E8%AE%B8%E5%8F%AF%E8%AF%81\" title=\"\u5b66\u751f\u7248\u8bb8\u53ef\u8bc1\">\u5b66\u751f\u7248\u8bb8\u53ef\u8bc1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/lxylp.com\/?p=163\/#%E5%BA%95%E5%B1%82%E5%9B%BE%E5%BD%A2%E9%94%99%E8%AF%AF%E5%B4%A9%E6%BA%83\" title=\"\u5e95\u5c42\u56fe\u5f62\u9519\u8bef\u5d29\u6e83\">\u5e95\u5c42\u56fe\u5f62\u9519\u8bef\u5d29\u6e83<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/lxylp.com\/?p=163\/#%E5%91%BD%E4%BB%A4%E8%A1%8C%E8%BF%90%E8%A1%8Cm%E6%96%87%E4%BB%B6\" title=\"\u547d\u4ee4\u884c\u8fd0\u884cm\u6587\u4ef6\">\u547d\u4ee4\u884c\u8fd0\u884cm\u6587\u4ef6<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/lxylp.com\/?p=163\/#%E9%9D%9E%E4%BA%A4%E4%BA%92%E6%96%B9%E5%BC%8F%E6%89%A7%E8%A1%8C_MATLAB_%E8%84%9A%E6%9C%AC%E6%88%96%E5%87%BD%E6%95%B0\" title=\"\u975e\u4ea4\u4e92\u65b9\u5f0f\u6267\u884c MATLAB \u811a\u672c\u6216\u51fd\u6570\">\u975e\u4ea4\u4e92\u65b9\u5f0f\u6267\u884c MATLAB \u811a\u672c\u6216\u51fd\u6570<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/lxylp.com\/?p=163\/#linux%E4%B8%8B%E4%B8%AD%E6%96%87%E6%B3%A8%E9%87%8A%E4%B9%B1%E7%A0%81\" title=\"linux\u4e0b\u4e2d\u6587\u6ce8\u91ca\u4e71\u7801\">linux\u4e0b\u4e2d\u6587\u6ce8\u91ca\u4e71\u7801<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/lxylp.com\/?p=163\/#%E8%BE%93%E5%85%A5%E8%BF%9B%E8%A1%8C%E6%A3%80%E6%9F%A5%E5%92%8C%E8%A7%A3%E6%9E%90\" title=\"\u8f93\u5165\u8fdb\u884c\u68c0\u67e5\u548c\u89e3\u6790\">\u8f93\u5165\u8fdb\u884c\u68c0\u67e5\u548c\u89e3\u6790<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/lxylp.com\/?p=163\/#figure%E4%B8%AD%E6%96%87%E6%98%BE%E7%A4%BA%E4%B9%B1%E7%A0%81\" title=\"figure\u4e2d\u6587\u663e\u793a\u4e71\u7801\">figure\u4e2d\u6587\u663e\u793a\u4e71\u7801<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/lxylp.com\/?p=163\/#matlab%E5%8F%91%E9%82%AE%E4%BB%B6%E9%80%9A%E7%9F%A5\" title=\"matlab\u53d1\u90ae\u4ef6\u901a\u77e5\">matlab\u53d1\u90ae\u4ef6\u901a\u77e5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/lxylp.com\/?p=163\/#eval%E9%94%99%E8%AF%AF\" title=\"eval\u9519\u8bef\">eval\u9519\u8bef<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/lxylp.com\/?p=163\/#matlab%E5%B9%B6%E8%A1%8C%E8%AE%A1%E7%AE%97\" title=\"matlab\u5e76\u884c\u8ba1\u7b97\">matlab\u5e76\u884c\u8ba1\u7b97<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/lxylp.com\/?p=163\/#coder%E4%B8%8Ecompiler\" title=\"coder\u4e0ecompiler\">coder\u4e0ecompiler<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/lxylp.com\/?p=163\/#Cannot_write_to_preference_file_%E2%80%9Cmatlabprf%E2%80%9D\" title=\"Cannot write to preference file \u201cmatlab.prf\u201d\">Cannot write to preference file \u201cmatlab.prf\u201d<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/lxylp.com\/?p=163\/#matlab%E7%89%88%E6%9C%AC%E4%B8%8E%E4%BA%A7%E5%93%81%E5%88%86%E7%B1%BB\" title=\"matlab\u7248\u672c\u4e0e\u4ea7\u54c1\u5206\u7c7b\">matlab\u7248\u672c\u4e0e\u4ea7\u54c1\u5206\u7c7b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/lxylp.com\/?p=163\/#%E5%B8%B8%E7%94%A8%E4%BB%A3%E7%A0%81\" title=\"\u5e38\u7528\u4ee3\u7801\">\u5e38\u7528\u4ee3\u7801<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/lxylp.com\/?p=163\/#%E9%99%90%E6%97%B6%E5%8F%91%E5%B8%83\" title=\"\u9650\u65f6\u53d1\u5e03\">\u9650\u65f6\u53d1\u5e03<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/lxylp.com\/?p=163\/#%E6%8D%A2%E6%89%80%E6%9C%89%E7%AD%89%E4%BA%8E%E6%9F%90%E4%B8%AA%E5%80%BC\" title=\"\u6362\u6240\u6709\u7b49\u4e8e\u67d0\u4e2a\u503c\">\u6362\u6240\u6709\u7b49\u4e8e\u67d0\u4e2a\u503c<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/lxylp.com\/?p=163\/#MATLAB%E8%AE%BE%E7%BD%AE%E6%90%9C%E7%B4%A2%E8%B7%AF%E5%BE%84\" title=\"MATLAB\u8bbe\u7f6e\u641c\u7d22\u8def\u5f84\">MATLAB\u8bbe\u7f6e\u641c\u7d22\u8def\u5f84<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/lxylp.com\/?p=163\/#slurm%E8%BF%90%E8%A1%8Cmatlab\" title=\"slurm\u8fd0\u884cmatlab\">slurm\u8fd0\u884cmatlab<\/a><\/li><\/ul><\/nav><\/div>\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Install_matlab\"><\/span>Install matlab:<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>matlab \u7684\u5b89\u88c5\u6709\u4e24\u79cd\u683c\u5f0f\uff0c\u4e00\u79cd\u662f\u4ea4\u4e92\u5f0f\u7684\u9002\u5408\u4e8e\u56fe\u5f62\u754c\u9762\uff0c\u53e6\u5916\u4e00\u79cd\u662f\u9759\u9ed8\u662f\u7684\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%9B%BE%E5%BD%A2%E7%95%8C%E9%9D%A2\"><\/span>\u56fe\u5f62\u754c\u9762<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u76f4\u63a5\u5728\u547d\u4ee4\u884c\u8f93\u5165<br><code>liupei@hw1:~$.\/install<\/code><br>\u6309\u63d0\u793a\u6b63\u5e38\u64cd\u4f5c\u5373\u53ef<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5728\u7ebf\u6fc0\u6d3b<br>\u8f93\u5165\u7528\u6237\u540d\uff0c\u5bc6\u7801\u767b\u5f55\u6fc0\u6d3b<\/li>\n\n\n\n<li>\u79bb\u7ebf\u6fc0\u6d3b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># \u4e3b\u673a ID , \/sbin\/ifconfig eth0\nfa:16:3e:7f:53:f1\n# \u8ba1\u7b97\u673a\u767b\u5f55\u540d, whoami\nliupei<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u975e\u6b63\u5e38\u6fc0\u6d3b<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5c06 license_standalone.lic \u653e\u5165Matlab\u5b89\u88c5\u76ee\u5f55\u7684 licenses \u6587\u4ef6\u5939\u4e2d<\/li>\n<\/ol>\n\n\n\n<p><code>sudo cp license_standalone.lic \/usr\/local\/MATLAB\/R2017b\/licenses\/<\/code><\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>\u5c06 libmwservices.so \u653e\u5165Matlab\u5b89\u88c5\u76ee\u5f55\u7684 bin \u4e2d\u7684 glnxa64 \u4e2d<\/li>\n<\/ol>\n\n\n\n<p><code>sudo cp libmwservices.so \/usr\/local\/MATLAB\/R2017b\/bin\/glnxa64\/<\/code><\/p>\n\n\n\n<p>\u53ef\u80fd\u51fa\u73b0\u7684\u95ee\u9898<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>install_unix: error while loading shared libraries and libexpat.so.1: file too short. 2020a.<\/li>\n<\/ul>\n\n\n\n<p>unzip -X -K matlab_R2020a_glnxa64, <a href=\"https:\/\/de.mathworks.com\/matlabcentral\/answers\/514883-install_unix-error-while-loading-shared-libraries-and-libexpat-so-1-file-too-short-2020a\">\u53c2\u8003\u6587\u732e<\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8f93\u5165 <code>.\/install<\/code> \u540e\u95ea\u9000<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>liupei@hw1:~$.\/install\nPreparing installation files ...\nInstalling ...\nFinish!<\/code><\/pre>\n\n\n\n<p>\u5148\u5c1d\u8bd5\u7528 sudo chmod -R 777 &lt;\u5b89\u88c5\u6587\u4ef6\u5939\u8def\u5f84&gt; \u547d\u4ee4\u7ed9\u6574\u4e2a\u5b89\u88c5\u6587\u4ef6\u5939\u6388\u6743\u540e\uff0c\u518d\u5c1d\u8bd5\u5b89\u88c5, \u786e\u5b9e\u53ef\u884c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%9D%99%E9%BB%98%E5%AE%89%E8%A3%85\"><\/span>\u9759\u9ed8\u5b89\u88c5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u5728SSH\u4e0a\u8fdc\u7a0b\u5b89\u88c5\u91c7\u7528\u7b2c\u4e8c\u79cd\u65b9\u5f0f\uff0c<a href=\"https:\/\/blog.csdn.net\/wangpengfei163\/article\/details\/47311041\">\u53c2\u8003\u6587\u732e<\/a>\uff0c\u53e6\u4e00\u4e2a<a href=\"https:\/\/www.cnblogs.com\/ZJUT-jiangnan\/p\/4241662.html\">\u53c2\u8003<\/a>\uff0c\u8f93\u5165\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir -p ~\/installed\/app\/matlab\/etc # \u5b89\u88c5\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55\nmkdir -p ~\/installed\/app\/matlab\/R2019b # \u5b89\u88c5\u4f4d\u7f6e\ncd ~\/installed\/app\/matlab\/etc\ncp serial\/license.lic . \/\/\u62f7\u8d1dlicense\ncp activate.ini . \/\/\u62f7\u8d1d\u6fc0\u6d3b\u6587\u4ef6\u6a21\u7248\u4f9b\u540e\u7eed\u7f16\u8f91\ncp installer_input.txt . \/\/\u62f7\u8d1d\u81ea\u52a8\u5b89\u88c5\u6587\u4ef6\u6a21\u7248\u4f9b\u540e\u7eed\u7f16\u8f91\nmv installer_input.txt installer_input_backup\ngrep -v \"#\" installer_input_backup &gt;installer_input.txt\nvim installer_input.txt\n# installer_input.txt\u6587\u4ef6\u914d\u7f6e\ndestinationFolder=\/public3\/home\/ch_cumtlp3\/installed\/app\/matlab\/R2019b\nfileInstallationKey=09806-07443-53955-64350-21751-41297\nagreeToLicense=yes\noutputFile=\/public3\/home\/ch_cumtlp3\/installed\/app\/mathworks_cumtlp3.log\nmode=silent\nactivationPropertiesFile=\/public3\/home\/ch_cumtlp3\/installed\/app\/matlab\/etc\/activate.ini\nlicensePath=\/public3\/home\/ch_cumtlp3\/installed\/app\/matlab\/etc\/license_standalone.lic\nproduct.Computer_Vision_Toolbox\nproduct.Control_System_Toolbox\nproduct.Curve_Fitting_Toolbox\nproduct.DSP_System_Toolbox\nproduct.Deep_Learning_Toolbox\nproduct.Econometrics_Toolbox\nproduct.Image_Processing_Toolbox\nproduct.Instrument_Control_Toolbox\nproduct.MATLAB\nproduct.Optimization_Toolbox\nproduct.Parallel_Computing_Toolbox\nproduct.Reinforcement_Learning_Toolbox\nproduct.Signal_Processing_Toolbox\nproduct.Statistics_and_Machine_Learning_Toolbox\nproduct.Symbolic_Math_Toolbox    \n\n# \u914d\u7f6e vim activate.ini\nactivateCommand=activateOffline\nlicenseFile=\/public3\/home\/ch_cumtlp3\/installed\/app\/matlab\/etc\/license_standalone.lic\nactivationKey=09806-07443-53955-64350-21751-41297\n\n# \u5b89\u88c5\ncd ~\/installed\/matlab_R2019b_linuxISO\/matlab2019b_linux\nsudo .\/install -inputFile \/public3\/home\/ch_cumtlp3\/installed\/app\/matlab\/etc\/installer_input.txt<\/code><\/pre>\n\n\n\n<p>matlab\u547d\u4ee4\u884c\u5b89\u88c5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo .\/install -mode silent -fileInstallationKey 09806-07443-53955-64350-21751-41297 -agreeToLicense yes -activationPropertiesFile activate.ini -destinationFolder \/public3\/home\/ch_cumtlp3\/installed\/app\/matlab2019b\n\u53e3\u4ee4\uff1a \nPreparing installation files ...\nInstalling ...\n(\u4e09\u6708 10, 2020 11:30:13) ##################################################################\n(\u4e09\u6708 10, 2020 11:30:13) #\n(\u4e09\u6708 10, 2020 11:30:13) # Today's Date: \n(\u4e09\u6708 10, 2020 11:30:13) Tue Mar 10 11:30:12 CST 2020\n(\u4e09\u6708 10, 2020 11:30:13) \n(\u4e09\u6708 10, 2020 11:30:13) System Info\n(\u4e09\u6708 10, 2020 11:30:13) OS: Linux 3.0.76-0.11-default\n(\u4e09\u6708 10, 2020 11:30:13) Arch: amd64\n(\u4e09\u6708 10, 2020 11:30:13) Data Model: 64\n(\u4e09\u6708 10, 2020 11:30:13) Language: zh\n(\u4e09\u6708 10, 2020 11:30:13) Java Vendor: Oracle Corporation\n(\u4e09\u6708 10, 2020 11:30:13) Java Home: \/tmp\/mathworks_23951\/sys\/java\/jre\/glnxa64\/jre\n(\u4e09\u6708 10, 2020 11:30:13) Java Version: 1.8.0_202\n(\u4e09\u6708 10, 2020 11:30:13) Java VM Name: Java HotSpot(TM) 64-Bit Server VM\n(\u4e09\u6708 10, 2020 11:30:13) Java Class Path: \/tmp\/mathworks_23951\/java\/config\/professionalinstaller\/pathlist.jar\n(\u4e09\u6708 10, 2020 11:30:13) User Name: root\n(\u4e09\u6708 10, 2020 11:30:13) Current Directory: \/tmp\/mathworks_23951\n(\u4e09\u6708 10, 2020 11:30:13) Input arguments: \n(\u4e09\u6708 10, 2020 11:30:13) root \/public3\/home\/ch_cumtlp3\/installed\/matlab_R2019b_linuxISO\/matlab2019b_linux\n(\u4e09\u6708 10, 2020 11:30:13) libdir \/tmp\/mathworks_23951\n(\u4e09\u6708 10, 2020 11:30:13) mode silent\n(\u4e09\u6708 10, 2020 11:30:13) fileInstallationKey 09806-07443-53955-64350-21751-41297\n(\u4e09\u6708 10, 2020 11:30:13) agreeToLicense yes\n(\u4e09\u6708 10, 2020 11:30:13) activationPropertiesFile activate.ini\n(\u4e09\u6708 10, 2020 11:30:13) destinationFolder \/public3\/home\/ch_cumtlp3\/installed\/app\/matlab2019b true\n(\u4e09\u6708 10, 2020 11:30:13) standalone true\n(\u4e09\u6708 10, 2020 11:30:18) Starting local product\/component search in download directory\n(\u4e09\u6708 10, 2020 11:30:18) Searching for archives...\n(\u4e09\u6708 10, 2020 11:30:18) Reading \/public3\/home\/ch_cumtlp3\/installed\/matlab_R2019b_linuxISO\/matlab2019b_linux\/archives\n(\u4e09\u6708 10, 2020 11:30:18) Extracting \/public3\/home\/ch_cumtlp3\/installed\/matlab_R2019b_linuxISO\/matlab2019b_linux\/archives\/platform_glnxa64.zip\n(\u4e09\u6708 10, 2020 11:30:18) Extracting \/public3\/home\/ch_cumtlp3\/installed\/matlab_R2019b_linuxISO\/matlab2019b_linux\/archives\/platform_common.zip\n(\u4e09\u6708 10, 2020 11:30:18) Reading \/public3\/home\/ch_cumtlp3\/installed\/matlab_R2019b_linuxISO\/matlab2019b_linux\n(\u4e09\u6708 10, 2020 11:30:18) 19 files found in \/public3\/home\/ch_cumtlp3\/installed\/matlab_R2019b_linuxISO\/matlab2019b_linux\n(\u4e09\u6708 10, 2020 11:30:18) Archive search complete.  21 total files found.\n(\u4e09\u6708 10, 2020 11:30:19) \u6b63\u5728\u63d0\u53d6\u8bbe\u7f6e\n(\u4e09\u6708 10, 2020 11:30:20) \u6b63\u5728\u6c47\u96c6\u4ea7\u54c1\u5217\u8868...\n(\u4e09\u6708 10, 2020 11:30:26) Completed local product\/component search\n(\u4e09\u6708 10, 2020 11:30:26) Download thread pool size = 4\n(\u4e09\u6708 10, 2020 11:30:36) Installing Product: MATLAB Parallel Server\n(\u4e09\u6708 10, 2020 11:32:44) Installing Product: MATLAB\n####################################\n####################################\n5. MATLAB Compiler SDK \u8981\u6c42\u5b89\u88c5\u4ee5\u4e0b\u7a0b\u5e8f: \n\n    \u25cf  \u652f\u6301\u7684\u7f16\u8bd1\u5668\uff0c\u7528\u4e8e\u521b\u5efa C \u548c C++ \u5171\u4eab\u5e93\n    \u25cf  Java JDK\uff0c\u7528\u4e8e\u521b\u5efa Java \u5305\n\n(\u4e09\u6708 10, 2020 11:43:21) Exiting with status 0\n(\u4e09\u6708 10, 2020 11:43:21) End - Successful.\nFinished<\/code><\/pre>\n\n\n\n<p>\u67e5\u770b\u5f53\u524d\u652f\u6301gblic\u7248\u672c\u7684\u547d\u4ee4<\/p>\n\n\n\n<p>\u611a\u8822\u5730\u5220\u9664libc.so.6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u611a\u8822\u5730\u6267\u884c\u4e86sudo rm \/lib64\/libc.so.6 \nstrings \/lib64\/libc.so.6 | grep GLIBC\ngetconf -a |grep glibc -i\nLD_PRELOAD=\/lib64\/libc-2.11.3.so  ln -s \/lib64\/libc-2.11.3.so \/lib64\/libc.so.6  \n# or  export LD_PRELOAD=\/lib64\/libc-2.11.3.so\nLD_PRELOAD=\/usr\/local\/lib\/libc-2.12.2.so  ln -s \/usr\/local\/lib\/libc-2.12.2.so \/lib64\/libc.so.6<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%AD%A6%E7%94%9F%E7%89%88%E8%AE%B8%E5%8F%AF%E8%AF%81\"><\/span>\u5b66\u751f\u7248\u8bb8\u53ef\u8bc1<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt;&gt; ver -support\n-----------------\nMATLAB \u7248\u672c: 9.7.0.1216025 (R2019b) Update 1\nMATLAB \u8bb8\u53ef\u8bc1\u7f16\u53f7: STUDENT\n\u64cd\u4f5c\u7cfb\u7edf: Microsoft Windows 10 Version 10.0 (Build 18362)\nJava \u7248\u672c: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode\n\nMATLAB                                    \u7248\u672c 9.7(R2019b)      \u8bb8\u53ef\u8bc1 STUDENT\nSimulink                                \u7248\u672c 10.0(R2019b)     \u8bb8\u53ef\u8bc1 STUDENT\nComputer Vision Toolbox                    \u7248\u672c 9.1(R2019b)      \u8bb8\u53ef\u8bc1 STUDENT\nControl System Toolbox                    \u7248\u672c 10.7(R2019b)     \u8bb8\u53ef\u8bc1 STUDENT\nCurve Fitting Toolbox                    \u7248\u672c 3.5.10(R2019b)   \u8bb8\u53ef\u8bc1 STUDENT\nDSP System Toolbox                        \u7248\u672c 9.9(R2019b)      \u8bb8\u53ef\u8bc1 STUDENT\nDeep Learning Toolbox                    \u7248\u672c 13.0(R2019b)     \u8bb8\u53ef\u8bc1 STUDENT\nImage Processing Toolbox                \u7248\u672c 11.0(R2019b)     \u8bb8\u53ef\u8bc1 STUDENT\nInstrument Control Toolbox              \u7248\u672c 4.1(R2019b)      \u8bb8\u53ef\u8bc1 STUDENT\nOptimization Toolbox                    \u7248\u672c 8.4(R2019b)      \u8bb8\u53ef\u8bc1 STUDENT\nParallel Computing Toolbox              \u7248\u672c 7.1(R2019b)      \u8bb8\u53ef\u8bc1 STUDENT\nReinforcement Learning Toolbox            \u7248\u672c 1.1(R2019b)      \u8bb8\u53ef\u8bc1 STUDENT\nSignal Processing Toolbox                \u7248\u672c 8.3(R2019b)      \u8bb8\u53ef\u8bc1 STUDENT\nStatistics and Machine Learning Toolbox \u7248\u672c 11.6(R2019b)     \u8bb8\u53ef\u8bc1 STUDENT\nSymbolic Math Toolbox                    \u7248\u672c 8.4(R2019b)      \u8bb8\u53ef\u8bc1 STUDENT<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>1<\/th><th>MATLAB &amp; \u7248\u672c 9.7(R2019b)<\/th><th>License 40875870<\/th><\/tr><\/thead><tbody><tr><td>2<\/td><td>Simulink &amp; \u7248\u672c 10.0(R2019b)<\/td><td>License 40875870<\/td><\/tr><tr><td>3<\/td><td>Computer Vision Toolbox&amp; \u7248\u672c 9.1(R2019b)<\/td><td>License 40875870<\/td><\/tr><tr><td>4<\/td><td>Control System Toolbox &amp; \u7248\u672c 10.7(R2019b)<\/td><td>License 40875870<\/td><\/tr><tr><td>5<\/td><td>Curve Fitting Toolbox &amp; \u7248\u672c 3.5.10(R2019b)<\/td><td>License 40875870<\/td><\/tr><tr><td>6<\/td><td>DSP System Toolbox &amp; \u7248\u672c 9.9(R2019b)<\/td><td>License 40875870<\/td><\/tr><tr><td>7<\/td><td>Deep Learning Toolbox &amp; \u7248\u672c 13.0(R2019b)<\/td><td>License 40875870<\/td><\/tr><tr><td>8<\/td><td>Econometrics Toolbox &amp; Version 5.3 (R2019b)<\/td><td>License <strong>40875870<\/strong><\/td><\/tr><tr><td>9<\/td><td>Embedded Coder &amp; Version 7.3(R2019b)<\/td><td>License <strong>40875870<\/strong><\/td><\/tr><tr><td>10<\/td><td>GPU Coder &amp; Version 1.4(R2019b)<\/td><td>License <strong>40875870<\/strong><\/td><\/tr><tr><td><\/td><td>Image Processing Toolbox&amp; \u7248\u672c 11.0(R2019b)<\/td><td>License 40875870<\/td><\/tr><tr><td><\/td><td>Instrument Control Toolbox &amp; \u7248\u672c 4.1(R2019b)<\/td><td>License 40875870<\/td><\/tr><tr><td><\/td><td>MATLAB Coder &amp; Version 4.3(R2019b)<\/td><td>License <strong>40875870<\/strong><\/td><\/tr><tr><td><\/td><td>MATLAB Compiler &amp; Version 7.1(R2019b)<\/td><td>License <strong>40875870<\/strong><\/td><\/tr><tr><td><\/td><td>MATLAB Compiler SDK &amp; Version 6.7(R2019b)<\/td><td>License <strong>40875870<\/strong><\/td><\/tr><tr><td><\/td><td>Optimization Toolbox &amp; \u7248\u672c 8.4(R2019b)<\/td><td>License 40875870<\/td><\/tr><tr><td><\/td><td>Parallel Computing Toolbox &amp; \u7248\u672c 7.1(R2019b)<\/td><td>License 40875870<\/td><\/tr><tr><td><\/td><td>Reinforcement Learning Toolbox<\/td><td>License 40875870<\/td><\/tr><tr><td><\/td><td>Signal Processing Toolbox &amp; \u7248\u672c 8.3(R2019b)<\/td><td>License 40875870<\/td><\/tr><tr><td><\/td><td>Statistics and Machine Learning Toolbox<\/td><td>License 40875870<\/td><\/tr><tr><td><\/td><td>Symbolic Math Toolbox &amp; \u7248\u672c 8.4(R2019b)<\/td><td>License 40875870<\/td><\/tr><tr><td><\/td><td>Wavelet Toolbox &amp; Version 5.3(R2019b) &amp; License<\/td><td>License <strong>40875870<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%BA%95%E5%B1%82%E5%9B%BE%E5%BD%A2%E9%94%99%E8%AF%AF%E5%B4%A9%E6%BA%83\"><\/span>\u5e95\u5c42\u56fe\u5f62\u9519\u8bef\u5d29\u6e83<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>\u8b66\u544a: MATLAB \u5148\u524d\u56e0\u5e95\u5c42\u56fe\u5f62\u9519\u8bef\u800c\u5d29\u6e83\u3002\u4e3a\u907f\u514d\u5728\u6b64\u4f1a\u8bdd\u671f\u95f4\u518d\u6b21\u5d29\u6e83\uff0cMATLAB \u5c06\u4f7f\u7528\u8f6f\u4ef6 OpenGL \u800c\u4e0d\u518d\u4f7f\u7528\u56fe\u5f62\u786c\u4ef6\u3002\u8981\u4fdd\u5b58\u8be5\u8bbe\u7f6e\u4ee5\u4f9b\u6b64\u540e\u7684\u4f1a\u8bdd\u4f7f\u7528\uff0c\u8bf7\u4f7f\u7528 opengl(\u2018save\u2019, \u2018software\u2019) \u547d\u4ee4\u3002<\/p>\n\n\n\n<p>\u67e5\u9605 Matlab \u5e2e\u52a9\uff0c\u53d1\u73b0matlab \u91cc\u8fdb\u884c\u56fe\u5f62\u6e32\u67d3\u7684OpenGL\u5b9e\u73b0\uff0c\u6709\u4e09\u79cd\u65b9\u5f0f(<a href=\"http:\/\/cn.mathworks.com\/help\/matlab\/creating_plots\/resolving-low-level-graphics-issues.html?requestedDomain=www.mathworks.com\">REF<\/a>):<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u786c\u4ef6\u52a0\u901f\uff08 hardware-accelerated\uff09<\/li>\n\n\n\n<li>\u57fa\u672c\u786c\u4ef6\u52a0\u901f\uff08basic hardware-accelerated\uff09<\/li>\n\n\n\n<li>\u8f6f\u4ef6\u5b9e\u73b0\uff08software \uff09<\/li>\n<\/ul>\n\n\n\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cmatlab\u5c1d\u8bd5\u4f7f\u7528\u786c\u4ef6\u52a0\u901f\u5b9e\u73b0\uff08\u82e5\u56fe\u5f62\u786c\u4ef6\u652f\u6301\uff09\u3002\u5f53\u51fa\u73b0\u5404\u7c7b\u56fe\u5f62\u95ee\u9898\u65f6\uff0c\u53ef\u4ee5\u5207\u6362\u5230\u8f6f\u4ef6\u5b9e\u73b0\u6216\u8005\u57fa\u672c\u786c\u4ef6\u52a0\u901f\u5b9e\u73b0\u3002\u4f46\u8fd9\u4e9b\u5b9e\u73b0\u4e0d\u652f\u6301\u4e00\u4e9b\u9ad8\u7ea7\u56fe\u5f62\u7279\u6027\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5bf9\u4e8e\u5f53\u524dmatlab\u6709\u6548\uff08\u91cd\u542f\u5931\u6548\uff09<br>(\u5404\u79cdOpenGL\u5b9e\u73b0\u5207\u6362\u65b9\u5f0f\u4e3a\uff1aopengl hardwarebasic\uff0c opengl software\uff0c opengl hardware). \u5c06OpenGL\u5b9e\u73b0\u6539\u4e3a\u57fa\u672c\u8f6f\u4ef6\u52a0\u901f\uff0c\u547d\u4ee4\u7a97\u53e3\u952e\u5165 opengl hardwarebasic \u5e76\u56de\u8f66\u3002\u518d\u6b21\u67e5\u770bOpenGL\u4fe1\u606f,\u68c0\u67e5matlab\u4ee5\u4f55\u79cd\u5b9e\u73b0\uff0c\u5728matlab\u547d\u4ee4\u7a97\u53e3\u952e\u5165 opengl info<\/li>\n\n\n\n<li>\u4fdd\u5b58\u8bbe\u7f6e\uff0c\u5bf9\u4ee5\u540ematlab\u542f\u52a8\u5747\u6709\u6548<br>\u547d\u4ee4\u7a97\u53e3\u8f93\u5165\uff1a opengl(\u2018save\u2019,\u2019hardwarebasic\u2019)\uff0c\u91cd\u542fmatlab.<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%91%BD%E4%BB%A4%E8%A1%8C%E8%BF%90%E8%A1%8Cm%E6%96%87%E4%BB%B6\"><\/span>\u547d\u4ee4\u884c\u8fd0\u884cm\u6587\u4ef6<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5982\u679c*.m\u6587\u4ef6\u4e2d\u4e0d\u662f\u51fd\u6578\uff0c\u662f\u4e00\u7cfb\u5217\u547d\u4ee4\u884c\uff0c\u53ea\u9700\u5728\u547d\u4ee4\u884c\u4e2d\u8f38\u5165\u6587\u4ef6\u540d\uff0c\u5982a.m\u6587\u4ef6\uff0c\u8f93\u5165 a \u56de\u8eca\u5373\u53ef<\/li>\n\n\n\n<li>\u5982\u679c*.m\u6587\u4ef6\u70bafunction\uff0c\u5982function scat = fun(image)\uff0c\u90a3\u5728workspace\u4e2d\u76f4\u63a5\u8abf\u7528 out = fun(image,aaa)<\/li>\n\n\n\n<li>2019b\u4ee5\u540e\u8d39\u4ea4\u4e92\u5efa\u8bae\u4f7f\u7528 -batch\u53c2\u6570+<\/li>\n<\/ol>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%9D%9E%E4%BA%A4%E4%BA%92%E6%96%B9%E5%BC%8F%E6%89%A7%E8%A1%8C_MATLAB_%E8%84%9A%E6%9C%AC%E6%88%96%E5%87%BD%E6%95%B0\"><\/span>\u975e\u4ea4\u4e92\u65b9\u5f0f\u6267\u884c MATLAB \u811a\u672c\u6216\u51fd\u6570<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<pre class=\"wp-block-code\"><code>-batch statement\n\u793a\u4f8b\uff1a\nmatlab -batch \"myscript\"\n\nmatlab -batch \"tic;disp(&#91;'hello ','world';'really ','good']);toc\"\n\nmatlab -batch \"addpath('..\/packageLiu\/');demoFunc(910,'ccf','han4py.mat','roihan4py.mat')\" &gt;xx11.txt<\/code><\/pre>\n\n\n\n<p>tement \u4e3a MATLAB \u51fd\u6570\u6216\u811a\u672c\u7684\u540d\u79f0\uff0c\u8bf7\u4e0d\u8981\u6307\u5b9a\u6587\u4ef6\u6269\u5c55\u540d\u3002\u6240\u9700\u7684\u4efb\u4f55\u6587\u4ef6\u90fd\u5fc5\u987b\u5728 MATLAB \u641c\u7d22\u8def\u5f84\u4e0a\u6216\u5728\u542f\u52a8\u6587\u4ef6\u5939\u4e2d\u3002<a href=\"https:\/\/ww2.mathworks.cn\/help\/matlab\/ref\/matlabmacos.html\">REF<\/a><\/p>\n\n\n\n<p>\u8bf7\u5728\u975e\u4ea4\u4e92\u5f0f\u811a\u672c\u6216\u547d\u4ee4\u884c\u5de5\u4f5c\u6d41\u4e2d\u4f7f\u7528 -batch \u9009\u9879\u3002\u8bf7\u52ff\u5c06\u6b64\u9009\u9879\u4e0e -r \u9009\u9879\u540c\u65f6\u4f7f\u7528\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"linux%E4%B8%8B%E4%B8%AD%E6%96%87%E6%B3%A8%E9%87%8A%E4%B9%B1%E7%A0%81\"><\/span>linux\u4e0b\u4e2d\u6587\u6ce8\u91ca\u4e71\u7801<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>\u4e2d\u6587\u6ce8\u91ca\u4e71\u7801\u7684\u539f\u56e0\u662fwindows\u4e0b\u7684m\u6587\u4ef6\u91c7\u7528\u7684\u662fgbk\u7f16\u7801\uff0c\u53ea\u8981\u5c06\u6240\u6709\u7684m\u6587\u4ef6\u8f6c\u6210 utf8\u6587\u4ef6\uff0c\u663e\u793a\u5c31\u6b63\u5e38\u4e86\u3002\uff08\u5728\u8f6c\u6210utf8\u524d\uff0c\u522b\u7528matlab\u6253\u5f00m\u6587\u4ef6\uff0c\u5426\u5219\u4e0b\u9762\u6b65\u9aa4\u5b8c\u6210\u540e\u6ce8\u91ca\u4f9d\u65e7\u6709\u4e71\u7801\uff0c\u540e\u679c\u5f88\u4e25\u91cd\u2026\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install enca\ncd code\/\nenca -x utf-8 a.m<\/code><\/pre>\n\n\n\n<p>\u4fee\u6539\u5b57\u7b26\u7f16\u7801utf-8 (utf8\u4e0egbk\u7f16\u7801\u8f6c\u6362)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ncoding(encoding)\ncurrent = slCharacterEncoding()\n# 'US-ASCII' | 'Windows-1252' | 'ISO-8859-1' | 'Shift_JIS' | 'UTF-8'<\/code><\/pre>\n\n\n\n<p><a href=\"https:\/\/ww2.mathworks.cn\/help\/simulink\/slref\/slcharacterencoding.html\">\u53c2\u8003\u6587\u732e<\/a><\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%BE%93%E5%85%A5%E8%BF%9B%E8%A1%8C%E6%A3%80%E6%9F%A5%E5%92%8C%E8%A7%A3%E6%9E%90\"><\/span>\u8f93\u5165\u8fdb\u884c\u68c0\u67e5\u548c\u89e3\u6790<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>matlab \u8fdb\u884c\u8f93\u5165\u68c0\u67e5\u548c\u89e3\u6790\uff08<a href=\"https:\/\/www.ilovematlab.cn\/article-58-1.html\">REF<\/a>\uff09<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"figure%E4%B8%AD%E6%96%87%E6%98%BE%E7%A4%BA%E4%B9%B1%E7%A0%81\"><\/span>figure\u4e2d\u6587\u663e\u793a\u4e71\u7801<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<pre class=\"wp-block-code\"><code>set(gca,'Fontname','Monospaced');<\/code><\/pre>\n\n\n\n<p>\u8c03\u8282 matlab \u663e\u793a\u8bed\u8a00\uff1aMATLAB\u83dc\u5355\u680f &gt; \u9884\u8bbe &gt; \u5e38\u89c4 &gt; \u9009\u62e9\u684c\u9762\u548c\u9519\u8bef\u4fe1\u606f\u7684\u8bed\u8a00 &gt; \u82f1\u6587\u3002\u4fdd\u5b58\u540e\u91cd\u542fMATLAB<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"matlab%E5%8F%91%E9%82%AE%E4%BB%B6%E9%80%9A%E7%9F%A5\"><\/span>matlab\u53d1\u90ae\u4ef6\u901a\u77e5<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>\u9488\u5bf9\u95ee\u9898\uff1a\u5728\u8fdc\u7a0b\u5de5\u4f5c\u7ad9\u4e0a\u8fd0\u884c\u8017\u65f6\u6bd4\u8f83\u4e45\u7684Matlab\u7a0b\u5e8f\uff0c\u603b\u662f\u8981\u65f6\u4e0d\u65f6\u7684\u8fdb\u53bb\u770b\u7a0b\u5e8f\u6709\u6ca1\u6709\u8fd0\u884c\u5b8c\uff0c\u611f\u89c9\u65f6\u95f4\u4e25\u91cd\u7684\u788e\u7247\u5316\uff0c\u4e8e\u662f\u7f16\u5199\u4ee3\u7801\u8ba9\u7a0b\u5e8f\u7ed3\u675f\u540e\u81ea\u52a8\u53d1\u90ae\u4ef6\u901a\u77e5\u3002<\/p>\n\n\n\n<p>\u8fd0\u884c\u5b8c\u53d1\u4fe1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function mailLDJ(subject,content,inboxAddress)\n%\u53d1\u9001\u90ae\u4ef6\u7684\u4ee3\u7801\n% subject\uff1a\u90ae\u4ef6\u4e3b\u9898\n% content\uff1a\u90ae\u4ef6\u5185\u5bb9\n% inboxAddress\uff1a\u6536\u4ef6\u7bb1\n    MailAddress = 'XXX@163.com';    %\u66ff\u6362\u4e3a\u81ea\u5df1\u7684\u90ae\u7bb1\n    password = 'G9rdX7G';  %\u66ff\u6362\u4e3a\u81ea\u5df1\u7684\u5bc6\u7801\u6216\u90ae\u7bb1\u5ba2\u6237\u7aef\u6388\u6743\u7801\n    setpref('Internet','E_mail',MailAddress);\n    setpref('Internet','SMTP_Server','smtp.163.com');%\u66ff\u6362\u4e3a\u81ea\u5df1\u90ae\u7bb1\u7684smtp\u670d\u52a1\u5668\n    setpref('Internet','SMTP_Username',MailAddress);\n    setpref('Internet','SMTP_Password',password);\n    props = java.lang.System.getProperties;\n    props.setProperty('mail.smtp.auth','true');\n    sendmail( inboxAddress,subject,content);\nend<\/code><\/pre>\n\n\n\n<p>\u4e3a\u4e86\u65b9\u4fbf\uff0c\u53ef\u4ee5\u5c06\u8fd9\u4e2a\u6587\u4ef6\u653e\u5728Matlab\u7684\u5de5\u4f5c\u8def\u5f84\u4e0b\uff0c\u5982\u679c\u6709\u5b89\u5168\u7684\u8003\u8651\uff0c\u53ef\u4ee5\u5728Matlab\u7684\u547d\u4ee4\u884c\u7a97\u53e3\u8f93\u5165\u4e0b\u9762\u7684\u547d\u4ee4\u6765\u751f\u6210.p\u6587\u4ef6\u3002\u6700\u540e\u5728\u9700\u8981\u53d1\u9001\u90ae\u4ef6\u7684\u7a0b\u5e8f\u672a\u5c3e\u6dfb\u52a0\u4ee5\u4e0b\u547d\u4ee4\uff0c\u5373\u53ef\u5b9e\u73b0\u7a0b\u5e8f\u7ed3\u675f\u540e\u53d1\u9001\u90ae\u4ef6\u7684\u547d\u4ee4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mailTome( 'Matlab\u7a0b\u5e8f\u8fd0\u884c\u7ed3\u675f',&#91;mfilename,'\u5df2\u8fd0\u884c\u7ed3\u675f'],'YYY@qq.com' ) % YYY\u66ff\u6362\u4e3a\u81ea\u5df1\u8981\u63a5\u6536\u90ae\u4ef6\u7684\u90ae\u7bb1\uff0cmfilename\u53ef\u83b7\u5f97\u5f53\u524d\u8fd0\u884c\u7684m\u6587\u4ef6\u7684\u540d\u79f0<\/code><\/pre>\n\n\n\n<p>\u4e0b\u9762\u518d\u7f16\u5199\u4e00\u4e2a\u51fd\u6570\u6587\u4ef6\u6765\u5e94\u5bf9m\u6587\u4ef6\u8fd0\u884c\u51fa\u9519\u7684\u60c5\u51b5\uff0c\u6587\u4ef6\u540d\u79f0\u4e3a Mailnotify.m\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function Mailnotify( filename, inboxAddress  )\n% Mailnotify( filename, inboxAddress )\n% filename: \u9700\u8981\u8fd0\u884c\u7684m\u6587\u4ef6\n% inboxAddress: \u6536\u4ef6\u7bb1\uff0c\u53ef\u7559\u7a7a\u4f7f\u7528\u9ed8\u8ba4\u90ae\u7bb1\n    if nargin &lt; 2\n        inboxAddress = 'XXX@qq.com'; %\u9ed8\u8ba4\u90ae\u7bb1\uff0c\u9700\u66ff\u6362\u4e3a\u81ea\u5df1\u7684\u90ae\u7bb1\n    end\n    &#91;~,cmdout] = system( 'systeminfo');\n    tmp = regexp(cmdout,'\\n');\n    pc_name = cmdout( tmp(1):tmp(2) );  %\u83b7\u5f97\u7535\u8111\u7684\u4e3b\u673a\u540d\n    try\n        % \u7531\u4e8eMatlab\u4e2d\u7684run\u547d\u4ee4\u4f1a\u4f7f\u7528\u5230\u5f53\u524d\u7684\u5de5\u4f5c\u7a7a\u95f4\uff0c\u56e0\u6b64\u9700\u8981\u4fdd\u5b58\u76f8\u5e94\u7684\u53d8\u91cf\uff0c\u9632\u6b62m\u6587\u4ef6\u4e2d\u4f7f\u7528clear\u5bfc\u81f4\u7a0b\u5e8f\u51fa\u9519\n        save tmp_Mailnotify.mat;    \n        run( filename );\n        load tmp_Mailnotify.mat;\n        subject = &#91; filename, '\u8fd0\u884c\u7ed3\u675f' ];\n        content = &#91; pc_name ];\n    catch ME;\n        load tmp_Mailnotify.mat;\n        subject = &#91; filename, '\u8fd0\u884c\u51fa\u9519\uff01' ];\n        content = &#91; ME.identifier,'  ', ME.message, pc_name ];\n    end\n    % \u5220\u9664\u4e4b\u524d\u50a8\u5b58\u7684\u53d8\u91cf\n    delete tmp_Mailnotify.mat\n    mailLDJ(subject,content,inboxAddress ); \nend<\/code><\/pre>\n\n\n\n<p>\u5c06 Mailnotify.m \u653e\u5728Matlab\u7684\u5de5\u4f5c\u76ee\u5f55\u4e0b\uff0c\u7136\u540e\u5728Matlab\u547d\u4ee4\u7a97\u53e3\u4e2d\u8f93\u5165\u4e0b\u9762\u7684\u547d\u4ee4\u5373\u53ef<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Mailnotify( 'test.m' )  %test.m\u4e3a\u9700\u8981\u8fd0\u884c\u7684m\u6587\u4ef6<\/code><\/pre>\n\n\n\n<p><a href=\"https:\/\/www.jianshu.com\/p\/409d2d527326\">REF1<\/a>\uff0c<a href=\"https:\/\/www.cnblogs.com\/ywl925\/p\/3574011.html\">REF2<\/a><\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"eval%E9%94%99%E8%AF%AF\"><\/span>eval\u9519\u8bef<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>matlab\u51fa\u73b0\u9519\u8bef\u4f7f\u7528eval\u7684\u63d0\u793a\u7684\u89e3\u51b3\u529e\u6cd5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt;&gt; restoredefaultpath\n&gt;&gt; rehash toolboxcache\n&gt;&gt; savepath<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"matlab%E5%B9%B6%E8%A1%8C%E8%AE%A1%E7%AE%97\"><\/span>matlab\u5e76\u884c\u8ba1\u7b97<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>\u5e76\u884c\u7f16\u7a0b\u9700\u8981\u4f9d\u6258\u4e00\u4e9b\u5e76\u884c\u6280\u672f\u6765\u5b9e\u73b0\u3002\u6ca1\u6709\u8fd9\u4e9b\u6280\u672f\u7684\u8bdd\uff0c\u90a3\u4e48\u7f16\u5199\u7684\u4ee3\u7801\u5c31\u662f\u4e32\u884c\u7684\u5355\u6838\u4ee3\u7801<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tic\n    t = datevec(datestr(now));\n    if (t(1)&lt;=2020 &amp;&amp; t(2)&gt;5)\n        disp('expired,contact with liupei@hpu.edu.cn')\n        exit\n    end\n    disp(datetime('now'))\n% \ncpu_core = 4;\nc = parcluster();\nc.NumWorkers = cpu_core;\njob = createJob(c);\n% \na_scan = 0:1:100;\nfor i = 1:length(a_scan)\n    a = a_scan(i);\n    parameter = {a};\n    t = createTask(job,@myCode,1,parameter);\nend\n% \nsubmit(job);\nwait(job);\noutput = fetchOutputs(job);\nsave(\"myData.mat\",\"output\")\n% \ntoc\n\n% \u7a0b\u5e8f\u5c01\u88c5\u4e3a\u51fd\u6570\nfunction c = myCode(a)\n  for i=1:1000\n    c = a+i;\n  end\nend<\/code><\/pre>\n\n\n\n<p>\u8fd9\u91cc\u7684\u5e76\u884c\u8ba1\u7b97\u5b9e\u9645\u4e0a\u53ef\u4ee5\u5206\u4e3a\u4e09\u90e8\u5206\uff0c<a href=\"https:\/\/www.jianshu.com\/p\/612fb5c42cef\">REF<\/a><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u521b\u5efa\u96c6\u7fa4\uff0c\u5e76\u5728\u96c6\u7fa4\u4e0a\u521b\u5efajob<br>\u7b2c\u4e00\u90e8\u5206\u4e0d\u9700\u8981\u4f5c\u592a\u591a\u6539\u52a8\uff0c\u53ea\u8981\u6539\u52a8\u4f60\u9700\u8981\u7684\u6838\u5fc3\u6570cpu_core<\/li>\n\n\n\n<li>\u6839\u636e\u81ea\u5df1\u7684\u60c5\u51b5\u6839\u636e\u53c2\u6570\u4f9d\u6b21\u5206\u914d\u4efb\u52a1<br>\u7b2c\u4e8c\u90e8\u5206\u5219\u9700\u8981\u4f5c\u51fa\u6539\u52a8\uff0c\u4f46\u662f\u601d\u8def\u5df2\u7ecf\u5168\u90e8\u544a\u8bc9\u5404\u4f4d\u4e86<\/li>\n\n\n\n<li>\u63d0\u4ea4\u4efb\u52a1<br>\u7b2c\u4e09\u90e8\u5206\u4e0d\u9700\u8981\u6539\u52a8\uff08\u5f53\u7136\u4f60\u53ef\u4ee5\u6539\u52a8\u4fdd\u5b58\u7684\u6587\u4ef6\u540d\u79f0\uff09<\/li>\n<\/ol>\n\n\n\n<p><strong>\u5e76\u884c\u6539\u4e32\u884c\u8ba1\u7b97<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tic\nt = datevec(datestr(now));\nif (t(1)&lt;=2020 &amp;&amp; t(2)&gt;5)\n    disp('expired,contact with liupei@hpu.edu.cn')\n    exit\nend\ndisp(datetime('now'))\n% \na_scan = 0:1:100;\nc = cell(1,length(a_scan));\nfor i = 1:length(a_scan)\n    a = a_scan(i);\n    c{i} = myCode(a);\nend\n\nsave('myDataCascade.mat','c')\n% \ntoc<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"coder%E4%B8%8Ecompiler\"><\/span>coder\u4e0ecompiler<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/pic\/matlab1.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li>System Requirements and Supported Compilers. <a href=\"https:\/\/www.mathworks.com\/support\/requirements\/previous-releases.html\">ref<\/a><\/li>\n\n\n\n<li>matlab compiler<br>\u76f4\u63a5\u5c06m\u6587\u4ef6\u751f\u6210\u4e3a\u2460exe\u6587\u4ef6,\u2461 \u52a8\u6001\u94fe\u63a5\u5e93dll\u6587\u4ef6\uff0c\u2462COM\u7ec4\u4ef6\uff0c\u4e14\u8fd9\u6837\u7684\u4ee3\u7801\u5728\u8fd0\u884c\u6216\u8005\u8c03\u7528\u65f6\u9700\u8981matlab compiler runtime\u5e93\u652f\u6301\u3002<br>\u547d\u4ee4\u884c\uff1amcc<br>\u56fe\u5f62\u754c\u9762\uff1adeployment<\/li>\n\n\n\n<li>matlab coder<br>\u5c06matlab m\u6587\u4ef6\u8f6c\u6362\u6210\u2460 c\/c++\u6587\u4ef6\uff1b\u2461 exe\u6587\u4ef6\uff1b\u2462\u52a8\u6001\u94fe\u63a5\u5e93dll\u6587\u4ef6\uff1b\u2463 mex\u6587\u4ef6\uff0c\u66f4\u53ef\u4ee5\u6839\u636e\u9700\u8981\u5c06c\/c++\u6587\u4ef6\u8fdb\u4e00\u6b65\u8f6c\u6362\u6210exe\u548clib\u6587\u4ef6\uff0c\u65e0\u9700MCR\u652f\u6301\u3002<br>\u547d\u4ee4\u884c\uff1acoder<br>\u56fe\u5f62\u754c\u9762\uff1acodegen<\/li>\n\n\n\n<li>mex\u547d\u4ee4<br>\u901a\u8fc7\u751f\u6210mex\u6587\u4ef6\uff0c\u5c06C++\u5feb\u901f\u96c6\u6210\u5230 matlab \u73af\u5883\uff0c\u7b2c\u4e00\u6b21\u4f7f\u7528\u9700\u8981\u8fdb\u884c\u914d\u7f6e >>mex \u2013 setup \uff0c\u5e38\u7528\u547d\u4ee4\u8fd8\u6709 >>mexext \u67e5\u8be2\u5f53\u524d\u5e73\u53f0\u7684 MEX \u6269\u5c55\u540d<\/li>\n\n\n\n<li>mbuild \u547d\u4ee4<br>\u662f matlab \u73af\u5883\u4e0b\u7684\u4e00\u4e2a\u96c6\u6210\u5de5\u5177\uff0c\u901a\u8fc7 mbuild \u53ef\u4ee5\u5728 matlab \u73af\u5883\u4e0b\u5c06 C\/C++\u7f16\u8bd1\u4e3a \u53ef\u6267\u884c\u6587\u4ef6\u6216\u52a8\u6001\u94fe\u63a5\u5e93\u7b49\u76ee\u6807\u6587\u4ef6\u3002\u5b9e\u9645\u4e0a\u662f\u901a\u8fc7\u8c03\u7528 C\/C++ \u7f16\u8bd1\u5668\u5b8c\u6210\u7f16\u8bd1\u3002\u7b2c\u4e00\u6b21\u4f7f\u7528\u9700\u8981\u914d\u7f6e\u73af\u5883 >> mbuild \u2013 setup<\/li>\n<\/ol>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Cannot_write_to_preference_file_%E2%80%9Cmatlabprf%E2%80%9D\"><\/span>Cannot write to preference file \u201cmatlab.prf\u201d<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>I installed MATLAB on ubuntu in some othe folder than the root folder, and successfully installed it with \u201csudo apt install matlab-support\u201d.<\/p>\n\n\n\n<p>Executed this command on the terminal, <a href=\"http:\/\/mathworks.com\/matlabcentral\/answers\/465800-cannot-write-to-preference-file-matlab-prf\">Ref<\/a>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chown -R <span class=\"katex math inline\">USER \/home\/<\/span>USER\/.matlab\/R2018b\/ <\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"matlab%E7%89%88%E6%9C%AC%E4%B8%8E%E4%BA%A7%E5%93%81%E5%88%86%E7%B1%BB\"><\/span>matlab\u7248\u672c\u4e0e\u4ea7\u54c1\u5206\u7c7b<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li>matlab\u5230\u5e95\u80fd\u5e72\u4ec0\u4e48\uff0c<a href=\"https:\/\/www.zhihu.com\/question\/27850677\">ref<\/a><\/li>\n\n\n\n<li>\u7248\u672c\u4e0e\u7cfb\u7edf\u652f\u6301\uff0c<a href=\"https:\/\/ww2.mathworks.cn\/en\/support\/requirements\/previous-releases.html\">ref<\/a><\/li>\n\n\n\n<li>\u4ea7\u54c1\u5206\u7c7b\uff0c<a href=\"https:\/\/ww2.mathworks.cn\/products.html?s_tid=gn_ps\">ref<\/a><\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%B8%B8%E7%94%A8%E4%BB%A3%E7%A0%81\"><\/span>\u5e38\u7528\u4ee3\u7801<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%99%90%E6%97%B6%E5%8F%91%E5%B8%83\"><\/span>\u9650\u65f6\u53d1\u5e03<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>t=now;\nwarnMsg = {'\u8f6f\u4ef6\u8fc7\u671f\uff0c\u8bf7\u8054\u7cfb\u4f5c\u8005!';'\u5218\u57f9-\u535a\u58eb';'Email:';'cumtlp@qq.com'};\nif t&gt;7371567 %\u6539\u65f6\u95f4\u7531\u4e0a\u4e00\u53e5\u5f97\u5230\u7684 2016\/9\/1 22:00\n% if t&gt;366934\nmsgbox(warnMsg,'\u53cb\u60c5\u63d0\u793a','warn');\nclose(gcf)\nend<\/code><\/pre>\n\n\n\n<p>matlab\u65f6\u95f4\uff0cmatlab\u7cfb\u7edf\u65f6\u95f4\u7b49\uff0c<a href=\"https:\/\/blog.csdn.net\/u013673437\/article\/details\/85344868\">\u53c2\u8003\u6587\u732e<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>% datestr(now)\u4ee5\u5b57\u7b26\u4e32\u5f62\u5f0f\u8fd4\u56de\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4\ndatestr(now)\n  ans =\n  29-Dec-2018 21:36:33\n% \u8fd4\u56de\u8868\u793a\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4\u7684datetime\u6807\u91cf\uff0c\u8f93\u5165:\nt = datetime('now')\nt = \n   2018-12-29 21:37:52\n% \u5177\u4f53\u65f6\u95f4\u8f6c\u4e3a\u6570\u7ec4\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a\ntime_1=datevec(datestr(now))\ntime_1 =\n        2018 12 29 21 23 23\ntime_1(1),time_1(2)\n   ans =\n        2018\n   ans =\n    12\n\nt = datevec(datestr(now));\nif (t(1)&lt;=2020 &amp;&amp; t(2)&gt;5)\n   disp(t(1))\n   disp(t(2))\n   disp('time expired,contact with liupei@hpu.edu.cn')\nexit\nend\ndisp(datetime('now'))<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%8D%A2%E6%89%80%E6%9C%89%E7%AD%89%E4%BA%8E%E6%9F%90%E4%B8%AA%E5%80%BC\"><\/span>\u6362\u6240\u6709\u7b49\u4e8e\u67d0\u4e2a\u503c<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u82e5\u975eNaN\uff1a<br><code>a=[2,5;1,4;1,4;3,6;3,6;2,5];<\/code><br><code>a(a==1)=0; %\u6240\u67091\u66ff\u6362\u4e3a0<\/code><br>% \u4e0a\u8ff0\u65b9\u6cd5\u53ef\u4ee5\u628a\u6570\u66ff\u6362\u4e3aNaN\u4f46\u4e0d\u80fd\u628aNaN\u66ff\u6362\u4e3a\u6570<\/p>\n\n\n\n<p>\u82e5\u4e3aNaN<br><code>a(isnan(a))=0; %\u5c06NaN\u66ff\u6362\u4e3a0<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"MATLAB%E8%AE%BE%E7%BD%AE%E6%90%9C%E7%B4%A2%E8%B7%AF%E5%BE%84\"><\/span>MATLAB\u8bbe\u7f6e\u641c\u7d22\u8def\u5f84<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5728\u547d\u4ee4\u7a97\u53e3\u8fd0\u884c <code>pathtool<\/code> \u547d\u4ee4<\/li>\n\n\n\n<li>\u5229\u7528path\u547d\u4ee4\u8bbe\u7f6e\u641c\u7d22\u8def\u5f84<br>path (path, \u2018\u65b0\u589e\u76ee\u5f55\u2019) %\u5728MATLAB\u7684\u641c\u7d22\u8def\u5f84\u7684\u672b\u5c3e\u6dfb\u52a0\u65b0\u76ee\u5f55<br><code>>> path(path,'c: :\\MyDir ')<\/code><\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"slurm%E8%BF%90%E8%A1%8Cmatlab\"><\/span>slurm\u8fd0\u884cmatlab<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>slurm\u811a\u672c\u6a21\u677f\u4e3a <code>matlab_job.slurm<\/code> :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#SBATCH -o test.std_%j.out\n#SBATCH -J test\n#SBATCH -e test.error.out\n#SBATCH -P inter -N 1 -n 4\n\nmodule load matlab\/R2016b\n\n# matlab -nodisplay -nosplash -nojvm -r script\nmatlab -nodisplay &lt; matlab_parfor.m<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5207\u8bb0\u5728\u8981\u8fd0\u884c\u7684 <code>.m<\/code> \u6587\u4ef6\u7684\u7ed3\u5c3e\u52a0\u5165 <code>quit<\/code>\uff0c\u5426\u5219\u5728\u4efb\u52a1\u7ed3\u675f\u540e\u65e0\u6cd5\u91ca\u653e\u8282\u70b9\u3002<\/li>\n\n\n\n<li>\u5c06\u811a\u672c\u4e8e\u8981\u6cbb\u7597\u6027\u7684 <code>.m<\/code> \u6587\u4ef6\u653e\u5728\u540c\u4e00\u4e2a\u6587\u4ef6\u5939\u4e0b\uff0c\u8fd0\u884c <code>sbatch matlab_job.slurm<\/code><\/li>\n\n\n\n<li>\u53c2\u6570 <code>-r<\/code> \u539a\u4e48\u7d27\u8ddf\u7d22\u8981\u8fd0\u884c\u7684 <code>.m<\/code> \u6587\u4ef6\u7684\u6587\u4ef6\u5939\u540d\uff01\u4e0d\u8981\u5199\u540e\u7f00~~~\uff01\uff01\uff01<\/li>\n<\/ul>\n\n\n\n<p>\u53c2\u8003\u6587\u732e<a href=\"https:\/\/scut-ccmp.github.io\/tags\/cluster\">cluster<\/a>, <a href=\"\u53c2\u8003\u6587\u732e\uff1a[CHICAGO](https:\/\/rcc.uchicago.edu\/docs\/software\/environments\/matlab\/)\">chicago<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install matlab: &#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[13],"class_list":["post-163","post","type-post","status-publish","format-standard","hentry","category-linux","tag-13"],"_links":{"self":[{"href":"https:\/\/lxylp.com\/index.php?rest_route=\/wp\/v2\/posts\/163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lxylp.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lxylp.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lxylp.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lxylp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=163"}],"version-history":[{"count":1,"href":"https:\/\/lxylp.com\/index.php?rest_route=\/wp\/v2\/posts\/163\/revisions"}],"predecessor-version":[{"id":164,"href":"https:\/\/lxylp.com\/index.php?rest_route=\/wp\/v2\/posts\/163\/revisions\/164"}],"wp:attachment":[{"href":"https:\/\/lxylp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lxylp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lxylp.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}