{"id":119875,"date":"2024-03-23T20:14:05","date_gmt":"2024-03-23T11:14:05","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/matlab%e3%81%a7%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%80%e6%96%b9%e6%b3%95\/"},"modified":"2024-03-28T03:17:14","modified_gmt":"2024-03-27T18:17:14","slug":"matlab%e3%81%a7%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%80%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/matlab%e3%81%a7%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%80%e6%96%b9%e6%b3%95\/","title":{"rendered":"matlab\u3067\u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\u65b9\u6cd5"},"content":{"rendered":"<p>MATLAB \u3067\u306e\u30bb\u30f3\u30b5\u30fc \u30c7\u30fc\u30bf\u306e\u8aad\u307f\u53d6\u308a\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u9023\u7d9a<\/li>\n<li>\u30d5\u30a1\u30a4\u30eb\u30aa\u30fc\u30d7\u30f3<\/li>\n<li>\u30cd\u30a4\u30c6\u30a3\u30d6\u306e\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\uff1f<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code>s = serial(<span class=\"hljs-string\">'COM1'<\/span>); <span class=\"hljs-comment\">% \u521b\u5efa\u4e32\u884c\u5bf9\u8c61<\/span>\r\nfopen(s); <span class=\"hljs-comment\">% \u6253\u5f00\u4e32\u53e3\u8fde\u63a5<\/span>\r\ndata = fread(s); <span class=\"hljs-comment\">% \u8bfb\u53d6\u4e32\u53e3\u6570\u636e<\/span>\r\nfclose(s); <span class=\"hljs-comment\">% \u5173\u95ed\u4e32\u53e3\u8fde\u63a5<\/span>\r\n<\/code><\/pre>\n<ol>\n<li>\u30cd\u30a4\u30c6\u30a3\u30d6\u65e5\u672c\u8a9e\u306b\u8a00\u3044\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u30021\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u307f\u3067\u5341\u5206\u3067\u3059\u3002\u30ed\u30fc\u30c9\u3002<\/li>\n<li>importo<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code>data = load(<span class=\"hljs-string\">'data.txt'<\/span>); <span class=\"hljs-comment\">% \u4f7f\u7528load\u51fd\u6570\u8bfb\u53d6\u6570\u636e\u6587\u4ef6<\/span>\r\n<span class=\"hljs-comment\">% \u6216\u8005<\/span>\r\ndata = importdata(<span class=\"hljs-string\">'data.txt'<\/span>); <span class=\"hljs-comment\">% \u4f7f\u7528importdata\u51fd\u6570\u8bfb\u53d6\u6570\u636e\u6587\u4ef6<\/span>\r\n<\/code><\/pre>\n<ol>\n<li>\u51b7\u9759\u306b<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code>devices = daq.getDevices(); <span class=\"hljs-comment\">% \u83b7\u53d6\u6240\u6709\u53ef\u7528\u7684\u6570\u636e\u91c7\u96c6\u5361\u8bbe\u5907<\/span>\r\ndaqDevice = daq.createSession(<span class=\"hljs-string\">'ni'<\/span>); <span class=\"hljs-comment\">% \u521b\u5efa\u6570\u636e\u91c7\u96c6\u5361\u4f1a\u8bdd<\/span>\r\ndaqDevice.addAnalogInputChannel(<span class=\"hljs-string\">'Dev1'<\/span>, <span class=\"hljs-number\">0<\/span>, <span class=\"hljs-string\">'Voltage'<\/span>); <span class=\"hljs-comment\">% \u6dfb\u52a0\u6a21\u62df\u8f93\u5165\u901a\u9053<\/span>\r\ndata = daqDevice.startForeground(); <span class=\"hljs-comment\">% \u542f\u52a8\u6570\u636e\u91c7\u96c6<\/span>\r\n<\/code><\/pre>\n<p>\u30bb\u30f3\u30b5\u306e\u7a2e\u985e\u3084\u30c7\u30fc\u30bf\u306e\u9001\u4fe1\u65b9\u6cd5\u306b\u3088\u3063\u3066\u3001\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u306f\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MATLAB \u3067\u306e\u30bb\u30f3\u30b5\u30fc \u30c7\u30fc\u30bf\u306e\u8aad\u307f\u53d6\u308a\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002 \u9023\u7d9a \u30d5\u30a1\u30a4\u30eb\u30aa\u30fc\u30d7\u30f3 \u30cd\u30a4\u30c6\u30a3\u30d6\u306e\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\uff1f s = serial(&#8216;COM1&#8217;); % \u521b\u5efa\u4e32\u884c\u5bf9\u8c61 fopen(s); % \u6253\u5f00\u4e32\u53e3 [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-119875","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>matlab\u3067\u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/matlab\u3067\u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"matlab\u3067\u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"MATLAB \u3067\u306e\u30bb\u30f3\u30b5\u30fc \u30c7\u30fc\u30bf\u306e\u8aad\u307f\u53d6\u308a\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002 \u9023\u7d9a \u30d5\u30a1\u30a4\u30eb\u30aa\u30fc\u30d7\u30f3 \u30cd\u30a4\u30c6\u30a3\u30d6\u306e\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\uff1f s = serial(&#039;COM1&#039;); % \u521b\u5efa\u4e32\u884c\u5bf9\u8c61 fopen(s); % \u6253\u5f00\u4e32\u53e3 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/matlab\u3067\u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-23T11:14:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-27T18:17:14+00:00\" \/>\n<meta name=\"author\" content=\"\u590f\u6a39, \u98a8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u590f\u6a39, \u98a8\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/matlab%e3%81%a7%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%80%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/matlab%e3%81%a7%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%80%e6%96%b9%e6%b3%95\/\",\"name\":\"matlab\u3067\u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-23T11:14:05+00:00\",\"dateModified\":\"2024-03-27T18:17:14+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/matlab%e3%81%a7%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%80%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/matlab%e3%81%a7%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%80%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/matlab%e3%81%a7%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%80%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"matlab\u3067\u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d\",\"name\":\"\u590f\u6a39, \u98a8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g\",\"caption\":\"\u590f\u6a39, \u98a8\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/natsukikaze\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/matlab%e3%81%a7%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%80%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"matlab\u3067\u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\u65b9\u6cd5 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/matlab\u3067\u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"matlab\u3067\u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\u65b9\u6cd5","og_description":"MATLAB \u3067\u306e\u30bb\u30f3\u30b5\u30fc \u30c7\u30fc\u30bf\u306e\u8aad\u307f\u53d6\u308a\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002 \u9023\u7d9a \u30d5\u30a1\u30a4\u30eb\u30aa\u30fc\u30d7\u30f3 \u30cd\u30a4\u30c6\u30a3\u30d6\u306e\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\uff1f s = serial('COM1'); % \u521b\u5efa\u4e32\u884c\u5bf9\u8c61 fopen(s); % \u6253\u5f00\u4e32\u53e3 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/matlab\u3067\u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-23T11:14:05+00:00","article_modified_time":"2024-03-27T18:17:14+00:00","author":"\u590f\u6a39, \u98a8","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u590f\u6a39, \u98a8"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/matlab%e3%81%a7%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%80%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/matlab%e3%81%a7%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%80%e6%96%b9%e6%b3%95\/","name":"matlab\u3067\u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-23T11:14:05+00:00","dateModified":"2024-03-27T18:17:14+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/matlab%e3%81%a7%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%80%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/matlab%e3%81%a7%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%80%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/matlab%e3%81%a7%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%80%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"matlab\u3067\u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d","name":"\u590f\u6a39, \u98a8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g","caption":"\u590f\u6a39, \u98a8"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/natsukikaze\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/matlab%e3%81%a7%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%80%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/119875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=119875"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/119875\/revisions"}],"predecessor-version":[{"id":199396,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/119875\/revisions\/199396"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=119875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=119875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=119875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}