{"id":145,"date":"2024-01-15T22:21:54","date_gmt":"2024-01-15T14:21:54","guid":{"rendered":"https:\/\/blog.huohh.cn\/?p=145"},"modified":"2024-01-18T02:12:27","modified_gmt":"2024-01-17T18:12:27","slug":"matlab%e7%a8%8b%e5%ba%8f%e7%bb%93%e6%9e%84","status":"publish","type":"post","link":"https:\/\/blog.huohh.cn\/?p=145","title":{"rendered":"MATLAB\u7a0b\u5e8f\u7ed3\u6784"},"content":{"rendered":"\n<p><strong>1.\u5faa\u73af\u7ed3\u6784<\/strong><\/p>\n\n\n\n<p>for\u5faa\u73af<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>a = 0\nfor i = 1 : 1 : 10\n   a=a+1\nend<\/code><\/pre>\n\n\n\n<p>while\u5faa\u73af\u7ed3\u6784<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>while i=2\n   a=2\nend<\/code><\/pre>\n\n\n\n<p><strong>2.\u5206\u652f\u7ed3\u6784<\/strong><\/p>\n\n\n\n<p><strong>if&#8230;end<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>if a>b\n   '\u6210\u7acb'\nend<\/code><\/pre>\n\n\n\n<p><strong>if&#8230;else&#8230;end<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>if a>b\n   'OK'\n   else\n   'NO'\nend<\/code><\/pre>\n\n\n\n<p><strong>switch&#8230;case&#8230;end<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>switch a+2\n   case 1\n        '1'\n   case 2\n        '2'\n   otherwise\n        'other'\nend<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u5faa\u73af\u7ed3\u6784 for\u5faa\u73af while\u5faa\u73af\u7ed3\u6784 2.\u5206\u652f\u7ed3\u6784 if&#8230;end if&#8230;els [&hellip;]<\/p>\n","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-145","post","type-post","status-publish","format-standard","hentry","category-matlab"],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":77,"url":"https:\/\/blog.huohh.cn\/?p=77","url_meta":{"origin":145,"position":0},"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":187,"url":"https:\/\/blog.huohh.cn\/?p=187","url_meta":{"origin":145,"position":1},"title":"MATLAB\u4e09\u7ef4\u7acb\u4f53\u7ed8\u56fe","author":"1424495037","date":"2024\u5e741\u670818\u65e5","format":false,"excerpt":"% \u5b9a\u4e49\u53c2\u6570 t\uff0c\u4ece 0 \u5230 10\u03c0\uff0c\u6b65\u957f\u4e3a \u03c0\/50 t = 0:pi\/50:10*pi; % \u4f7f\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":176,"url":"https:\/\/blog.huohh.cn\/?p=176","url_meta":{"origin":145,"position":2},"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":33,"url":"https:\/\/blog.huohh.cn\/?p=33","url_meta":{"origin":145,"position":3},"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":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.huohh.cn\/index.php?rest_route=\/wp\/v2\/posts\/145","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=145"}],"version-history":[{"count":4,"href":"https:\/\/blog.huohh.cn\/index.php?rest_route=\/wp\/v2\/posts\/145\/revisions"}],"predecessor-version":[{"id":175,"href":"https:\/\/blog.huohh.cn\/index.php?rest_route=\/wp\/v2\/posts\/145\/revisions\/175"}],"wp:attachment":[{"href":"https:\/\/blog.huohh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.huohh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.huohh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}