{"id":1668,"date":"2015-07-16T10:30:31","date_gmt":"2015-07-16T15:30:31","guid":{"rendered":"https:\/\/blogs.mathworks.com\/videos\/?p=1668"},"modified":"2015-07-16T10:30:31","modified_gmt":"2015-07-16T15:30:31","slug":"large-table-building-that-requires-scalar-operations","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/videos\/2015\/07\/16\/large-table-building-that-requires-scalar-operations\/","title":{"rendered":"Large Table Building That Requires Scalar Operations"},"content":{"rendered":"<p>Recently I have been using MATLAB tables a lot to store large heterogeneous datasets. In many cases, the rows contain information about files in a file system. As I need to access the files sequentially, I can&#8217;t vectorize the code that constructs the table. Instead I need to build it one row at a time.<\/p>\n<p>Here I review a few methods for building large MATLAB tables that require scalar operations like this, and I compare the relative speed of these methods.<\/p>\n<p><div class=\"row\"><div class=\"col-xs-12 containing-block\"><div class=\"bc-outer-container add_margin_20\"><videoplayer><div class=\"video-js-container\"><video data-video-id=\"3958830397001\" data-video-category=\"blog\" data-autostart=\"false\" data-account=\"62009828001\" data-omniture-account=\"mathwgbl\" data-player=\"rJ9XCz2Sx\" data-embed=\"default\" id=\"mathworks-brightcove-player\" class=\"video-js\" controls><\/video><script src=\"\/\/players.brightcove.net\/62009828001\/rJ9XCz2Sx_default\/index.min.js\"><\/script><script>if (typeof(playerLoaded) === 'undefined') {var playerLoaded = false;}(function isVideojsDefined() {if (typeof(videojs) !== 'undefined') {videojs(\"mathworks-brightcove-player\").on('loadedmetadata', function() {playerLoaded = true;});} else {setTimeout(isVideojsDefined, 10);}})();<\/script><\/div><\/videoplayer><\/div><\/div><\/div><\/p>\n<p>See documentation on <a href=\"https:\/\/www.mathworks.com\/help\/matlab\/tables.html\" title=\"MATLAB tables\">MATLAB tables<\/a> for more information.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"thumbnail thumbnail_asset asset_overlay video\"><a href=\"https:\/\/blogs.mathworks.com\/videos\/2015\/07\/16\/large-table-building-that-requires-scalar-operations\/?dir=autoplay\"><img decoding=\"async\" src=\"https:\/\/cf-images.us-east-1.prod.boltdns.net\/v1\/static\/62009828001\/b64c6d8f-94e2-4c0c-84f2-b7ba3f642402\/404dc331-1161-467f-8105-3c8fb384bb9c\/1280x720\/match\/image.jpg\" onError=\"this.style.display ='none';\"\/><\/p>\n<div class=\"overlay_container\">\n      <span class=\"icon-video icon_color_null\"><time class=\"video_length\">5:42<\/time><\/span>\n      <\/div>\n<p>      <\/a><\/div>\n<p>Recently I have been using MATLAB tables a lot to store large heterogeneous datasets. In many cases, the rows contain information about files in a file system. As I need to access the files&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/videos\/2015\/07\/16\/large-table-building-that-requires-scalar-operations\/\">read more >><\/a><\/p>\n","protected":false},"author":133,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/posts\/1668"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/users\/133"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/comments?post=1668"}],"version-history":[{"count":3,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/posts\/1668\/revisions"}],"predecessor-version":[{"id":1727,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/posts\/1668\/revisions\/1727"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/media?parent=1668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/categories?post=1668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/tags?post=1668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}