{"id":1249,"date":"2023-07-03T16:07:52","date_gmt":"2023-07-03T08:07:52","guid":{"rendered":"http:\/\/www.autouav.net.cn\/?p=1249"},"modified":"2023-07-03T16:07:52","modified_gmt":"2023-07-03T08:07:52","slug":"matlab%e8%ae%a1%e7%ae%97%e8%a7%92%e5%ba%a6","status":"publish","type":"post","link":"https:\/\/www.autouav.net.cn\/?p=1249","title":{"rendered":"matlab\u8ba1\u7b97\u89d2\u5ea6"},"content":{"rendered":"<p>\u5728 MATLAB \u4e2d\uff0c\u4e09\u89d2\u51fd\u6570\u7684\u8f93\u5165\u53c2\u6570\u9700\u8981\u4f7f\u7528\u5f27\u5ea6\u5236\u3002\u56e0\u6b64\uff0c\u8981\u8ba1\u7b97 sin(60\u00b0)\uff0c\u9700\u8981\u5148\u5c06\u89d2\u5ea6\u8f6c\u6362\u4e3a\u5f27\u5ea6\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u4f7f\u7528 MATLAB \u8868\u8fbe sin(60\u00b0) \u7684\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<p>&#8220;`matlab<br \/>\nangle_degrees = 60;<br \/>\nangle_radians = deg2rad(angle_degrees);<br \/>\nresult = sin(angle_radians);<\/p>\n<p>disp(result);<br \/>\n&#8220;`<\/p>\n<p>\u8fd0\u884c\u4e0a\u8ff0\u4ee3\u7801\uff0c\u5c06\u4f1a\u8ba1\u7b97 sin(60\u00b0) \u7684\u503c\uff0c\u5e76\u6253\u5370\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<p>\u5728\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5c06\u89d2\u5ea6\u503c 60\u00b0 \u5b58\u50a8\u5728 `angle_degrees` \u53d8\u91cf\u4e2d\uff0c\u7136\u540e\u4f7f\u7528 `deg2rad` \u51fd\u6570\u5c06\u89d2\u5ea6\u8f6c\u6362\u4e3a\u5f27\u5ea6\u5236\uff0c\u5c06\u7ed3\u679c\u5b58\u50a8\u5728 `angle_radians` \u53d8\u91cf\u4e2d\u3002\u6700\u540e\uff0c\u901a\u8fc7 `sin` \u51fd\u6570\u8ba1\u7b97 sin(60\u00b0) \u7684\u503c\uff0c\u5e76\u5c06\u7ed3\u679c\u6253\u5370\u8f93\u51fa\u3002<\/p>\n<p>\u8bf7\u6ce8\u610f\uff0c\u5728 MATLAB \u4e2d\uff0c\u4e09\u89d2\u51fd\u6570\u7684\u8f93\u5165\u53c2\u6570\u9700\u8981\u4f7f\u7528\u5f27\u5ea6\u5236\uff0c\u800c\u975e\u89d2\u5ea6\u5236\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u5728\u8ba1\u7b97\u4e4b\u524d\u8981\u786e\u4fdd\u5c06\u89d2\u5ea6\u8f6c\u6362\u4e3a\u5f27\u5ea6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 MATLAB \u4e2d\uff0c\u4e09\u89d2\u51fd\u6570\u7684\u8f93\u5165\u53c2\u6570\u9700\u8981\u4f7f\u7528\u5f27\u5ea6\u5236\u3002\u56e0\u6b64\uff0c\u8981\u8ba1\u7b97 sin(60\u00b0)\uff0c\u9700\u8981\u5148\u5c06\u89d2\u5ea6\u8f6c\u6362\u4e3a\u5f27\u5ea6\u3002 \u4ee5\u4e0b\u662f\u4f7f\u7528 MATLAB \u8868\u8fbe sin(60\u00b0) \u7684\u4ee3\u7801\u793a\u4f8b\uff1a &#8220;`mat&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1249","post","type-post","status-publish","format-standard","hentry","category-uav"],"_links":{"self":[{"href":"https:\/\/www.autouav.net.cn\/index.php?rest_route=\/wp\/v2\/posts\/1249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.autouav.net.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.autouav.net.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.autouav.net.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.autouav.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1249"}],"version-history":[{"count":1,"href":"https:\/\/www.autouav.net.cn\/index.php?rest_route=\/wp\/v2\/posts\/1249\/revisions"}],"predecessor-version":[{"id":1250,"href":"https:\/\/www.autouav.net.cn\/index.php?rest_route=\/wp\/v2\/posts\/1249\/revisions\/1250"}],"wp:attachment":[{"href":"https:\/\/www.autouav.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.autouav.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.autouav.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}