{"id":1012441,"date":"2024-12-27T11:38:59","date_gmt":"2024-12-27T03:38:59","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1012441.html"},"modified":"2024-12-27T11:39:04","modified_gmt":"2024-12-27T03:39:04","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e5%af%bc%e5%85%a5matlab","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1012441.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u5bfc\u5165matlab"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25090224\/47f5736f-fe96-4af0-9093-e69896d7a09d.webp\" alt=\"python\u4e2d\u5982\u4f55\u5bfc\u5165matlab\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u5bfc\u5165MATLAB\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u5f0f\uff1a\u4f7f\u7528MATLAB Engine API\u3001\u4f7f\u7528Scipy\u7684io\u6a21\u5757\u3001\u4f7f\u7528h5py\u5e93\u8bfb\u53d6MAT\u6587\u4ef6\u3002<\/strong> \u5176\u4e2d\uff0c<strong>MATLAB Engine API<\/strong> \u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u5b83\u5141\u8bb8Python\u76f4\u63a5\u8c03\u7528MATLAB\u547d\u4ee4\u5e76\u4f7f\u7528MATLAB\u7684\u5de5\u5177\u7bb1\u3002\u5b83\u9700\u8981\u5728\u7cfb\u7edf\u4e0a\u5b89\u88c5MATLAB\u5e76\u8bbe\u7f6e\u76f8\u5e94\u7684\u8def\u5f84\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u4f7f\u7528MATLAB Engine API\u6765\u5bfc\u5165\u548c\u4f7f\u7528MATLAB\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001MATLAB ENGINE API\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e<\/p>\n<\/p>\n<p><p>MATLAB Engine API\u63d0\u4f9b\u4e86\u4e00\u4e2a\u76f4\u63a5\u5728Python\u4e2d\u8c03\u7528MATLAB\u7684\u63a5\u53e3\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u5728Python\u811a\u672c\u4e2d\u6267\u884cMATLAB\u547d\u4ee4\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528MATLAB Engine API\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5MATLAB Engine API<\/strong><br \/>\u9996\u5148\uff0c\u786e\u4fdd\u4f60\u7684\u8ba1\u7b97\u673a\u4e0a\u5df2\u7ecf\u5b89\u88c5\u4e86MATLAB\uff0c\u5e76\u4e14\u5b89\u88c5\u8def\u5f84\u5df2\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e2d\u3002MATLAB\u7684\u5b89\u88c5\u5305\u4e2d\u81ea\u5e26\u4e86MATLAB Engine API for Python\u7684\u5b89\u88c5\u6587\u4ef6\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00MATLAB\uff0c\u8f93\u5165\u547d\u4ee4 <code>cd (fullfile(matlabroot,&#39;extern&#39;,&#39;engines&#39;,&#39;python&#39;))<\/code>\uff0c\u8fdb\u5165\u5230MATLAB Engine API\u7684\u5b89\u88c5\u76ee\u5f55\u3002<\/li>\n<li>\u7136\u540e\u8f93\u5165\u547d\u4ee4 <code>system(&#39;python setup.py install&#39;)<\/code>\uff0c\u8fd9\u5c06\u4f1a\u5728\u4f60\u7684Python\u73af\u5883\u4e2d\u5b89\u88c5MATLAB Engine API\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5b89\u88c5<\/strong><br \/>\u5b8c\u6210\u5b89\u88c5\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7Python\u547d\u4ee4\u884c\u6216IDE\u4e2d\u8f93\u5165 <code>import matlab.engine<\/code> \u6765\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002\u5982\u679c\u6ca1\u6709\u9519\u8bef\u4fe1\u606f\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4f7f\u7528MATLAB ENGINE API\u8fdb\u884c\u57fa\u672c\u64cd\u4f5c<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u542f\u52a8MATLAB\u5f15\u64ce<\/strong><br \/>\u5728Python\u4e2d\u4f7f\u7528MATLAB\u529f\u80fd\u4e4b\u524d\uff0c\u9700\u8981\u5148\u542f\u52a8MATLAB\u5f15\u64ce\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u4ee3\u7801\u542f\u52a8\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matlab.engine<\/p>\n<p>eng = matlab.engine.start_matlab()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u542f\u52a8\u4e86\u4e00\u4e2aMATLAB\u8fdb\u7a0b\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u5f15\u64ce\u5bf9\u8c61 <code>eng<\/code>\uff0c\u901a\u8fc7\u8fd9\u4e2a\u5bf9\u8c61\u53ef\u4ee5\u8c03\u7528MATLAB\u51fd\u6570\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8c03\u7528MATLAB\u51fd\u6570<\/strong><br \/>\u542f\u52a8\u5f15\u64ce\u540e\uff0c\u5c31\u53ef\u4ee5\u901a\u8fc7\u5f15\u64ce\u5bf9\u8c61\u8c03\u7528MATLAB\u4e2d\u7684\u51fd\u6570\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">result = eng.sqrt(4.0)<\/p>\n<p>print(result)  # \u8f93\u51fa: 2.0<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u8c03\u7528\u4e86MATLAB\u7684 <code>sqrt<\/code> \u51fd\u6570\u8ba1\u7b974.0\u7684\u5e73\u65b9\u6839\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f20\u9012\u6570\u636e<\/strong><br \/>Python\u548cMATLAB\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u9012\u662fMATLAB Engine API\u7684\u4e00\u4e2a\u91cd\u8981\u7279\u6027\u3002\u53ef\u4ee5\u901a\u8fc7\u5c06Python\u7684\u5217\u8868\u6216\u6570\u7ec4\u8f6c\u6362\u4e3aMATLAB\u7684\u6570\u7ec4\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>data = np.array([1, 2, 3, 4])<\/p>\n<p>matlab_data = matlab.double(data.tolist())<\/p>\n<p>result = eng.sum(matlab_data)<\/p>\n<p>print(result)  # \u8f93\u51fa: 10.0<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0cPython\u7684 <code>numpy<\/code> \u6570\u7ec4\u88ab\u8f6c\u6362\u4e3aMATLAB\u7684 <code>double<\/code> \u7c7b\u578b\uff0c\u7136\u540e\u4f20\u9012\u7ed9MATLAB\u7684 <code>sum<\/code> \u51fd\u6570\u8fdb\u884c\u6c42\u548c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001MATLAB\u4e0ePYTHON\u7684\u6570\u636e\u7c7b\u578b\u8f6c\u6362<\/p>\n<\/p>\n<p><p>MATLAB Engine API\u652f\u6301\u591a\u79cdMATLAB\u4e0ePython\u6570\u636e\u7c7b\u578b\u4e4b\u95f4\u7684\u8f6c\u6362\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684\u6570\u636e\u7c7b\u578b\u8f6c\u6362\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u57fa\u672c\u7c7b\u578b\u8f6c\u6362<\/strong>  <\/p>\n<\/p>\n<ul>\n<li><strong>Python\u7684int<\/strong> \u8f6c\u6362\u4e3a <strong>MATLAB\u7684int32<\/strong><\/li>\n<li><strong>Python\u7684float<\/strong> \u8f6c\u6362\u4e3a <strong>MATLAB\u7684double<\/strong><\/li>\n<li><strong>Python\u7684str<\/strong> \u8f6c\u6362\u4e3a <strong>MATLAB\u7684char<\/strong><\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u6570\u7ec4\u4e0e\u77e9\u9635\u8f6c\u6362<\/strong>  <\/p>\n<\/p>\n<ul>\n<li><strong>Python\u7684list\u6216tuple<\/strong> \u8f6c\u6362\u4e3a <strong>MATLAB\u7684cell array<\/strong><\/li>\n<li><strong>Python\u7684numpy array<\/strong> \u8f6c\u6362\u4e3a <strong>MATLAB\u7684numeric array<\/strong><\/li>\n<\/ul>\n<p><p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cMATLAB\u4e2d\u7684\u6570\u7ec4\u662f\u5217\u4f18\u5148\u7684\uff0c\u800cPython\u4e2d\u7684\u6570\u7ec4\u662f\u884c\u4f18\u5148\u7684\u3002\u56e0\u6b64\u5728\u8fdb\u884c\u591a\u7ef4\u6570\u7ec4\u8f6c\u6362\u65f6\u9700\u8981\u7279\u522b\u6ce8\u610f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u5904\u7406MATLAB\u7684\u8f93\u51fa<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5355\u4e2a\u8fd4\u56de\u503c<\/strong><br \/>MATLAB\u7684\u51fd\u6570\u901a\u5e38\u8fd4\u56de\u591a\u4e2a\u503c\uff0c\u4f7f\u7528MATLAB Engine API\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u591a\u4e2a\u53d8\u91cf\u6765\u63a5\u6536\u8fd4\u56de\u503c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">a, b = eng.max([1, 2, 3, 4, 5], nargout=2)<\/p>\n<p>print(a, b)  # \u8f93\u51fa: 5.0 5<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c <code>nargout=2<\/code> \u8868\u793a\u671f\u671b\u63a5\u6536\u4e24\u4e2a\u8fd4\u56de\u503c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5904\u7406\u9519\u8bef<\/strong><br \/>\u5728\u8c03\u7528MATLAB\u51fd\u6570\u65f6\u53ef\u80fd\u4f1a\u9047\u5230\u9519\u8bef\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u7684 <code>try...except<\/code> \u8bed\u53e5\u8fdb\u884c\u6355\u83b7\u548c\u5904\u7406\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">try:<\/p>\n<p>    eng.error_function()<\/p>\n<p>except matlab.engine.MatlabExecutionError as e:<\/p>\n<p>    print(&quot;Error: &quot;, e)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u6027\u80fd\u4f18\u5316\u4e0e\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5f15\u64ce\u7684\u542f\u52a8\u65f6\u95f4<\/strong><br \/>\u542f\u52a8MATLAB\u5f15\u64ce\u662f\u4e00\u4e2a\u8017\u65f6\u7684\u64cd\u4f5c\uff0c\u53ef\u4ee5\u901a\u8fc7\u542f\u52a8\u540e\u4fdd\u6301\u5f15\u64ce\u6253\u5f00\u6765\u51cf\u5c11\u591a\u6b21\u8c03\u7528\u65f6\u7684\u542f\u52a8\u65f6\u95f4\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6570\u636e\u4f20\u8f93\u7684\u5f00\u9500<\/strong><br \/>\u5728MATLAB\u4e0ePython\u4e4b\u95f4\u4f20\u9012\u5927\u91cf\u6570\u636e\u65f6\uff0c\u53ef\u80fd\u4f1a\u6709\u8f83\u9ad8\u7684\u5f00\u9500\u3002\u5efa\u8bae\u5728MATLAB\u4e2d\u8fdb\u884c\u6570\u636e\u5bc6\u96c6\u578b\u8fd0\u7b97\uff0c\u7136\u540e\u5c06\u7ed3\u679c\u4f20\u56dePython\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5e76\u884c\u8ba1\u7b97<\/strong><br \/>MATLAB\u5f15\u64ce\u652f\u6301\u5728\u4e0d\u540c\u7684\u7ebf\u7a0b\u4e2d\u8fd0\u884c\u591a\u4e2aMATLAB\u4f1a\u8bdd\uff0c\u53ef\u4ee5\u901a\u8fc7 <code>start_matlab<\/code> \u51fd\u6570\u7684\u53c2\u6570 <code>background=True<\/code> \u6765\u542f\u7528\u540e\u53f0\u8fd0\u884c\u6a21\u5f0f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u5176\u4ed6MATLAB\u4e0ePYTHON\u4ea4\u4e92\u7684\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528MATLAB Engine API\u5916\uff0c\u8fd8\u6709\u5176\u4ed6\u51e0\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5b9e\u73b0MATLAB\u548cPython\u7684\u4ea4\u4e92\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>Scipy\u7684io\u6a21\u5757<\/strong><br \/>Scipy\u5e93\u4e2d\u7684 <code>io<\/code> \u6a21\u5757\u63d0\u4f9b\u4e86\u8bfb\u53d6\u548c\u5199\u5165MAT\u6587\u4ef6\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u7528\u4e8e\u6570\u636e\u7684\u4ea4\u6362\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from scipy.io import loadmat, savemat<\/p>\n<p>data = loadmat(&#39;data.mat&#39;)<\/p>\n<p>savemat(&#39;output.mat&#39;, {&#39;data&#39;: data})<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>h5py\u5e93<\/strong><br \/>\u5bf9\u4e8e\u4f7f\u7528HDF5\u683c\u5f0f\u7684MAT\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>h5py<\/code> \u5e93\u8fdb\u884c\u8bfb\u53d6\u548c\u5199\u5165\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import h5py<\/p>\n<p>with h5py.File(&#39;data.mat&#39;, &#39;r&#39;) as f:<\/p>\n<p>    data = f[&#39;dataset_name&#39;][:]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>MATLAB Production Server<\/strong><br \/>\u5982\u679c\u9700\u8981\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u90e8\u7f72MATLAB\u7b97\u6cd5\uff0c\u53ef\u4ee5\u4f7f\u7528MATLAB Production Server\u6765\u63d0\u4f9b\u670d\u52a1\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0cPython\u7528\u6237\u53ef\u4ee5\u9ad8\u6548\u5730\u5229\u7528MATLAB\u7684\u5f3a\u5927\u529f\u80fd\uff0c\u4ece\u800c\u5728\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u4e2d\u5b9e\u73b0\u7075\u6d3b\u7684\u89e3\u51b3\u65b9\u6848\u3002\u65e0\u8bba\u662f\u6570\u636e\u5206\u6790\u3001\u79d1\u5b66\u8ba1\u7b97\u8fd8\u662f\u5de5\u7a0b\u5e94\u7528\uff0cMATLAB\u548cPython\u7684\u7ed3\u5408\u90fd\u80fd\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u5f3a\u5927\u7684\u652f\u6301\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8c03\u7528MATLAB\u51fd\u6570\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>matlab.engine<\/code>\u6a21\u5757\u6765\u8c03\u7528MATLAB\u51fd\u6570\u3002\u9996\u5148\u9700\u8981\u5b89\u88c5MATLAB Engine API for Python\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u5bfc\u5165MATLAB\u5e76\u8c03\u7528\u76f8\u5e94\u7684\u51fd\u6570\uff1a  <\/p>\n<ol>\n<li>\u5bfc\u5165MATLAB\u5f15\u64ce\uff1a<code>import matlab.engine<\/code>  <\/li>\n<li>\u542f\u52a8MATLAB\u5f15\u64ce\uff1a<code>eng = matlab.engine.start_matlab()<\/code>  <\/li>\n<li>\u8c03\u7528MATLAB\u51fd\u6570\uff0c\u4f8b\u5982\uff1a<code>result = eng.your_function_name(arguments)<\/code>\u3002  <\/li>\n<li>\u5b8c\u6210\u540e\uff0c\u8bb0\u5f97\u5173\u95edMATLAB\u5f15\u64ce\uff1a<code>eng.quit()<\/code>\u3002<\/li>\n<\/ol>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5904\u7406MATLAB\u751f\u6210\u7684\u6570\u636e\uff1f<\/strong><br \/>MATLAB\u751f\u6210\u7684\u6570\u636e\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7<code>scipy.io<\/code>\u6a21\u5757\u4e2d\u7684<code>loadmat<\/code>\u548c<code>savemat<\/code>\u51fd\u6570\u8fdb\u884c\u5904\u7406\u3002\u8fd9\u4e9b\u51fd\u6570\u53ef\u4ee5\u8bfb\u53d6\u548c\u5199\u5165MATLAB\u7684<code>.mat<\/code>\u6587\u4ef6\u683c\u5f0f\u3002\u4f7f\u7528<code>loadmat<\/code>\u53ef\u4ee5\u5c06MATLAB\u6570\u636e\u52a0\u8f7d\u5230Python\u4e2d\u4e3a\u5b57\u5178\u683c\u5f0f\uff0c\u800c<code>savemat<\/code>\u5219\u53ef\u4ee5\u5c06Python\u4e2d\u7684\u6570\u636e\u4fdd\u5b58\u4e3a<code>.mat<\/code>\u6587\u4ef6\uff0c\u786e\u4fdd\u6570\u636e\u5728\u4e24\u4e2a\u73af\u5883\u4e4b\u95f4\u987a\u5229\u6d41\u52a8\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u5728Python\u4e2d\u66ff\u4ee3MATLAB\u7684\u529f\u80fd\uff1f<\/strong><br \/>Python\u63d0\u4f9b\u4e86\u591a\u4e2a\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u5982NumPy\u3001SciPy\u548cPandas\u7b49\uff0c\u80fd\u591f\u66ff\u4ee3MATLAB\u7684\u4e00\u4e9b\u529f\u80fd\u3002\u8fd9\u4e9b\u5e93\u652f\u6301\u77e9\u9635\u8fd0\u7b97\u3001\u6570\u636e\u5206\u6790\u548c\u53ef\u89c6\u5316\u7b49\u529f\u80fd\uff0c\u5f88\u591a\u60c5\u51b5\u4e0b\uff0c\u7528\u6237\u53ef\u4ee5\u5728Python\u4e2d\u5b9e\u73b0\u4e0eMATLAB\u7c7b\u4f3c\u7684\u8ba1\u7b97\u4efb\u52a1\u3002\u6b64\u5916\uff0c\u4f7f\u7528<code>matplotlib<\/code>\u8fdb\u884c\u6570\u636e\u53ef\u89c6\u5316\u4e5f\u53ef\u4ee5\u8fbe\u5230\u4e0eMATLAB\u76f8\u4f3c\u7684\u6548\u679c\u3002\u56e0\u6b64\uff0c\u82e5\u7528\u6237\u719f\u6089Python\uff0c\u4e5f\u53ef\u4ee5\u8003\u8651\u5728Python\u4e2d\u8fdb\u884c\u79d1\u5b66\u8ba1\u7b97\u548c\u6570\u636e\u5206\u6790\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u5bfc\u5165MATLAB\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u5f0f\uff1a\u4f7f\u7528MATLAB Engine API\u3001\u4f7f\u7528Scipy\u7684 [&hellip;]","protected":false},"author":3,"featured_media":1012451,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1012441"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1012441"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1012441\/revisions"}],"predecessor-version":[{"id":1012453,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1012441\/revisions\/1012453"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1012451"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1012441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1012441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1012441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}