Electronicdesign 8904 Matlab Tall Arrays Promo

Tall Arrays Allow Cross-Platform Manipulation

Oct. 12, 2016
The Mathwork’s MATLAB R2016a had a number of improvements, including Live Editing and big data analytics.
MATLAB R2016b tall arrays can provide data from sources that range from a database to a Hadoop Distributed File System (HDFS).

The Mathworks’ MATLAB R2016a had a number of improvements, including Live Editing and big data analytics. The latest iteration, MATLAB R2016b, incorporates a new data type: tall arrays (see figure). Tall arrays allow MATLAB users to access data from a number of sources, ranging from databases to a Hadoop Distributed File System (HDFS). They are not limited by the amount of memory on the host computer.

MATLAB R2006b introduced the concept of distributed arrays. This allowed developers to take advantage of a cluster running a MATLAB application on multiple machines with in-memory data distributed among the machines. This feature is still available, but the challenge is designing the application and distributing the data.

Tall arrays can be used in a variety of ways—from a single system running an application that has access to large amounts of data (that will not fit into the host memory) to a Hadoop system with many processors (that have access to HDFS). The same MATLAB code will run on these and other configurations with MATLAB, managing the data manipulation and program distribution. This greatly simplifies the developer’s job, allowing them to concentrate on the algorithm rather than data management.

Although tall arrays can use an SQL database table or a spreadsheet file as a source, they use MATLAB’s Datastore support added in MATLAB 2014b to define where data is coming from. An application can use any number of convention or tall arrays, so application data could be spread around a number of sources with MATLAB managing the entire system.

Tall arrays are columnar data with rows of elements like a database table or spreadsheet. Support includes mathematical and statistical operations, as well as data manipulation operations. The Mathworks also provides statistical and machine learning algorithms, and tall arrays are supported by the parallel compute toolbox.

Using tall arrays with a Hadoop cluster allows the system to run the application in the cluster, rather than bringing the data into a host PC. This provides significantly more processing power and storage than even the usually multicore server.

Debugging and profiling on a Hadoop cluster is a bit challenging, so developers will likely work on a local PC to develop algorithms that use tall arrays. The algorithms can then be moved to the cluster if very large amounts of data and compute power are needed. The PC provides interactive debugging, tracing, and profiling.

The tall array data type is supported by MATLAB’s packaging system, which lets a developer create a royalty-free application in the same fashion as an application developed using C tools. This requires a bit more configuration to handle various data sources, but a package can be set up to work with any data sources a developer has to work with using the interactive version of MATLAB.

The MATLAB Coder system that generates C code for embedded applications also supports tall arrays. This allows this support to be included in embedded applications.

The Mathworks also added the MATLAB API for Spark to MATLAB 2016b. Apache Spark is directed acyclic graph (DAC) execution engine that is compatible with Hadoop. It is another way to take advantage a Hadoop cluster. This requires significantly more programming compared to using tall arrays.

Developers using the MATLAB API for Spark work at the Spark API level. It includes functions like flatMap and mapParitions compared to tall arrays that use MATLAB array operations.

Sponsored Recommendations

What are the Important Considerations when Assessing Cobot Safety?

April 16, 2024
A review of the requirements of ISO/TS 15066 and how they fit in with ISO 10218-1 and 10218-2 a consideration the complexities of collaboration.

Wire & Cable Cutting Digi-Spool® Service

April 16, 2024
Explore DigiKey’s Digi-Spool® professional cutting service for efficient and precise wire and cable management. Custom-cut to your exact specifications for a variety of cable ...

DigiKey Factory Tomorrow Season 3: Sustainable Manufacturing

April 16, 2024
Industry 4.0 is helping manufacturers develop and integrate technologies such as AI, edge computing and connectivity for the factories of tomorrow. Learn more at DigiKey today...

Connectivity – The Backbone of Sustainable Automation

April 16, 2024
Advanced interfaces for signals, data, and electrical power are essential. They help save resources and costs when networking production equipment.

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!