{"id":344,"date":"2020-02-07T11:19:47","date_gmt":"2020-02-07T03:19:47","guid":{"rendered":"<!-- wp:paragraph -->\n<p>\u4eca\u5929\u5b66\u5230\u4e86\u4e00\u4e2a\u4ece\u5b57\u7b26\u4e32\u4e2d\u63d0\u53d6\u6570\u5b57\u7684\u65b9\u6cd5<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>\u5bf9\u4e8e\u5b57\u7b26\u4e32\u4e2d\u6570\u5b57\u51fa\u73b0\u683c\u5f0f\u76f8\u5bf9\u56fa\u5b9a\u7684\uff0c\u53ef\u4ee5\u4f7f\u7528'sscanf'\u51fd\u6570\uff0c \u529f\u80fd\u4e3aRead formatted data from string \u3002<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>\u6211\u4ece\u6587\u672c\u6587\u4ef6\u4e2d\u8bfb\u53d6\u5230\u6587\u4ef6\u540d\u5b57\u7b26\u4e32\uff0c<\/p>\n<!-- \/wp:pa"},"modified":"2020-02-16T12:31:18","modified_gmt":"2020-02-16T04:31:18","slug":"matlab-%e4%bb%8e%e5%ad%97%e7%ac%a6%e4%b8%b2%e4%b8%ad%e6%8f%90%e5%8f%96%e6%95%b0%e5%ad%97","status":"publish","type":"post","link":"https:\/\/blog.francis67.cc\/?p=344","title":{"rendered":"Matlab \u4ece\u5b57\u7b26\u4e32\u4e2d\u63d0\u53d6\u6570\u5b57"},"content":{"rendered":"\n<p>\u4eca\u5929\u5b66\u5230\u4e86\u4e00\u4e2a\u4ece\u5b57\u7b26\u4e32\u4e2d\u63d0\u53d6\u6570\u5b57\u7684\u65b9\u6cd5<\/p>\n\n\n\n<p>\u5bf9\u4e8e\u5b57\u7b26\u4e32\u4e2d\u6570\u5b57\u51fa\u73b0\u683c\u5f0f\u76f8\u5bf9\u56fa\u5b9a\u7684\uff0c\u53ef\u4ee5\u4f7f\u7528&#8217;sscanf&#8217;\u51fd\u6570\uff0c \u529f\u80fd\u4e3aRead formatted data from string \u3002<\/p>\n\n\n\n<p>\u6211\u4ece\u6587\u672c\u6587\u4ef6\u4e2d\u8bfb\u53d6\u5230\u6587\u4ef6\u540d\u5b57\u7b26\u4e32\uff0c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">str='R_topAu_hspacer=0.1[um],period=0.3[um].txt'<br> A = sscanf(str, 'R_topAu_hspacer=%f[um],period=%f[um].txt'); <\/pre>\n\n\n\n<p>\u5c31\u53ef\u4ee5\u63d0\u53d6\u51fa\u5176\u4e2d\u76840.1\u548c0.3<\/p>\n\n\n\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/ww2.mathworks.cn\/help\/matlab\/ref\/sscanf.html?s_tid=doc_ta\">Matlab &#8211; sscanf\u4ece\u5b57\u7b26\u4e32\u8bfb\u53d6\u683c\u5f0f\u5316\u6570\u636e<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u5b66\u5230\u4e86\u4e00\u4e2a\u4ece\u5b57\u7b26\u4e32\u4e2d\u63d0\u53d6\u6570\u5b57\u7684\u65b9\u6cd5 \u5bf9\u4e8e\u5b57\u7b26\u4e32\u4e2d\u6570\u5b57\u51fa\u73b0\u683c\u5f0f\u76f8\u5bf9\u56fa\u5b9a\u7684\uff0c\u53ef\u4ee5\u4f7f\u7528&#8217;sscanf [&hellip;]<\/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":[150,177],"class_list":["post-344","post","type-post","status-publish","format-standard","hentry","category-notes","tag-matlab","tag-177"],"_links":{"self":[{"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=\/wp\/v2\/posts\/344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=344"}],"version-history":[{"count":3,"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=\/wp\/v2\/posts\/344\/revisions"}],"predecessor-version":[{"id":362,"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=\/wp\/v2\/posts\/344\/revisions\/362"}],"wp:attachment":[{"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.francis67.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}