{"id":187,"date":"2024-01-18T04:03:58","date_gmt":"2024-01-17T20:03:58","guid":{"rendered":"https:\/\/blog.huohh.cn\/?p=187"},"modified":"2024-01-18T04:04:01","modified_gmt":"2024-01-17T20:04:01","slug":"matlab%e4%b8%89%e7%bb%b4%e7%ab%8b%e4%bd%93%e7%bb%98%e5%9b%be","status":"publish","type":"post","link":"https:\/\/blog.huohh.cn\/?p=187","title":{"rendered":"MATLAB\u4e09\u7ef4\u7acb\u4f53\u7ed8\u56fe"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>% \u5b9a\u4e49\u53c2\u6570 t\uff0c\u4ece 0 \u5230 10\u03c0\uff0c\u6b65\u957f\u4e3a \u03c0\/50\r\nt = 0:pi\/50:10*pi;\r\n\r\n% \u4f7f\u7528 plot3 \u7ed8\u5236\u4e09\u7ef4\u66f2\u7ebf\r\n% sin(t) \u4f5c\u4e3a x \u5750\u6807\uff0ccos(t) \u4f5c\u4e3a y \u5750\u6807\uff0ct \u4f5c\u4e3a z \u5750\u6807\r\nplot3(sin(t), cos(t), t);\r\n\r\n% \u8bbe\u7f6e x \u8f74\u6807\u7b7e\u4e3a 'sin(t)'\r\nxlabel('sin(t)');\r\n\r\n% \u8bbe\u7f6e y \u8f74\u6807\u7b7e\u4e3a 'cos(t)'\r\nylabel('cos(t)');\r\n\r\n% \u8bbe\u7f6e z \u8f74\u6807\u7b7e\u4e3a 't'\r\nzlabel('t');\r\n\r\n% \u5f00\u542f\u7f51\u683c\uff0c\u4ee5\u4fbf\u66f4\u6e05\u6670\u5730\u67e5\u770b\u56fe\u5f62\u7684\u7ec6\u8282\r\ngrid on;\r\n\r\n% \u8bbe\u7f6e\u5750\u6807\u8f74\u6bd4\u4f8b\u4e3a\u6b63\u65b9\u5f62\uff0c\u4f7f\u5f97 x\u3001y\u3001z \u8f74\u7684\u5355\u4f4d\u957f\u5ea6\u76f8\u7b49\r\naxis square;\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-187","post","type-post","status-publish","format-standard","hentry","category-matlab"],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":176,"url":"https:\/\/blog.huohh.cn\/?p=176","url_meta":{"origin":187,"position":0},"title":"MATLAB\u4e8c\u7ef4\u5e73\u9762\u7ed8\u56fe","author":"1424495037","date":"2024\u5e741\u670818\u65e5","format":false,"excerpt":"x = 0:0.01:2*pi; y = sin(x); figure % \u521b\u5efa\u4e00\u4e2a\u5e55\u5e03 plot(\u2026","rel":"","context":"\u5728\u201cMATLAB\u201d\u4e2d","block_context":{"text":"MATLAB","link":"https:\/\/blog.huohh.cn\/?cat=3"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/blog.huohh.cn\/wp-content\/uploads\/2024\/01\/image-7.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/blog.huohh.cn\/wp-content\/uploads\/2024\/01\/image-7.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/blog.huohh.cn\/wp-content\/uploads\/2024\/01\/image-7.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/blog.huohh.cn\/wp-content\/uploads\/2024\/01\/image-7.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":77,"url":"https:\/\/blog.huohh.cn\/?p=77","url_meta":{"origin":187,"position":1},"title":"MATLAB\u5b66\u4e60\u7b14\u8bb01","author":"1424495037","date":"2024\u5e741\u670814\u65e5","format":false,"excerpt":"\u57fa\u7840\u77e5\u8bc6 MATLAB\u4ece1\u5f00\u59cb\uff0cC\u8bed\u8a00\u7b49\u5176\u4ed6\u8bed\u8a00\u4ece0\u5f00\u59cb\u3002 \u8d4b\u503c\u65b9\u6cd5\u4e0e\u5176\u4ed6\u8bed\u8a00\u76f8\u540c\u3002 a = 10 \u2026","rel":"","context":"\u5728\u201cMATLAB\u201d\u4e2d","block_context":{"text":"MATLAB","link":"https:\/\/blog.huohh.cn\/?cat=3"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":33,"url":"https:\/\/blog.huohh.cn\/?p=33","url_meta":{"origin":187,"position":2},"title":"\u6279\u6539\u7f51\u9ad8\u5206\u8bcd\u53e5","author":"1424495037","date":"2021\u5e7412\u67084\u65e5","format":false,"excerpt":"[\u4eae\u70b9\u8bcd\u6c47]whereas\u610f\u601d\u662f\u7136\u800c\u2026\uff0c\u662f\u7ecf\u5178\u8f6c\u6362\u8bdd\u9898\u7c7b\u8bcd\u6c47\u3002 [\u95ea\u5149\u77ed\u8bed]a case in po\u2026","rel":"","context":"\u5728\u201c\u751f\u7269\u201d\u4e2d","block_context":{"text":"\u751f\u7269","link":"https:\/\/blog.huohh.cn\/?cat=2"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":226,"url":"https:\/\/blog.huohh.cn\/?p=226","url_meta":{"origin":187,"position":3},"title":"\u56fe\u4e66\u9986\u4fbf\u6377\u62a2\u5ea7 \u4f7f\u7528\u6587\u6863","author":"1424495037","date":"2024\u5e748\u670830\u65e5","format":false,"excerpt":"\u5b89\u5353\u82f9\u679c\u53cc\u7aef\u5df2\u540c\u6b65\u66f4\u65b0\uff01\u8bf7\u5168\u90e8\u91cd\u65b0\u4e0b\u8f7d \u5b66\u6821\u6700\u8fd1\u53ef\u80fd\u4f1a\u67e5\uff0c\u8bf7\u91cd\u65b0\u4ed4\u7ec6\u9605\u8bfb\u5168\u6587\uff01\u8bf7\u4fdd\u7559\u6bcf\u6b21\u9884\u7ea6\u5ea7\u4f4d\u622a\u56fe\u2026","rel":"","context":"\u5728\u201c\u8ba1\u7b97\u673a\u201d\u4e2d","block_context":{"text":"\u8ba1\u7b97\u673a","link":"https:\/\/blog.huohh.cn\/?cat=6"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/blog.huohh.cn\/wp-content\/uploads\/2024\/08\/1bb67e5ffd3d3efb372abe2d8c38195.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/blog.huohh.cn\/wp-content\/uploads\/2024\/08\/1bb67e5ffd3d3efb372abe2d8c38195.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/blog.huohh.cn\/wp-content\/uploads\/2024\/08\/1bb67e5ffd3d3efb372abe2d8c38195.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.huohh.cn\/index.php?rest_route=\/wp\/v2\/posts\/187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.huohh.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.huohh.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.huohh.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.huohh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=187"}],"version-history":[{"count":2,"href":"https:\/\/blog.huohh.cn\/index.php?rest_route=\/wp\/v2\/posts\/187\/revisions"}],"predecessor-version":[{"id":189,"href":"https:\/\/blog.huohh.cn\/index.php?rest_route=\/wp\/v2\/posts\/187\/revisions\/189"}],"wp:attachment":[{"href":"https:\/\/blog.huohh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.huohh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.huohh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}