Loren on the Art of MATLAB

Turn ideas into MATLAB


Loren on the Art of MATLAB has been archived and will not be updated.

Posts 1 - 10 of 29

Results for: Efficiency

Natural Neighbor – A Superb Interpolation Method 16

I'm happy to welcome Damian Sheehy as this week's guest blogger. Damian works on the development of geometry-related features at MathWorks. He will provide answers to two frequently asked questions; one on scattered data interpolation that he will cover in this blog and the other on Delaunay triangulation that he will cover in the next. Over to you, Damian...... read more >>

Process “Big Data” in MATLAB with mapreduce 2

Today I’d like to introduce guest blogger Ken Atwell who works for the MATLAB Development team here at MathWorks. Today, Ken will be discussing with you the MapReduce programming technique now available in the R2014b release of MATLAB. MapReduce provides a way to process large amounts of file-based data on a single computer in MATLAB. For very large data sets, the same MATLAB code written using MapReduce can also be run on the "big data" platform, Hadoop®.... read more >>

Recent Question about Speed with Subarray Calculations 8

Recently someone asked me to explain the speed behavior doing a calculation using a loop and array indexing vs. getting the subarray first.... read more >>

Delaying Evaluation of Function Inputs 8

When you call a function in MATLAB, MATLAB first evaluates all the inputs, and then passes these (possibly) computed values as the inputs. Recently Ljubomir Josifovski asked if... read more >>

A Brief History of polyval 4

When I first started working at MathWorks, there were already a few functions in MATLAB for working with polynomials. One of these, polyval, for polynomial evaluation, used... read more >>

More Ways to Find Matching Data 55

Today on the newsgroup, a user wanted help finding when values in a matrix matched some other values (see the post). There was already a solution posted when I was reading, but something... read more >>

Possible Test Scores 14

Walter Roberson, frequent contributor to the MATLAB newsgroup, posed the following question to me to use as the starter idea of a blog. Q: Suppose there is a... read more >>

Timing Extraction of Parts of an Array 10

In Sarah's blog, Dan asked about speed of removing elements. There are a number of ways of deleting elements in MATLAB. So, what's the "best" way? ... read more >>

Finding Patterns in Arrays 19

Recently, my colleague Jeff asked me if I would look at some code he wrote to find a pattern of numbers in a larger array. Without looking at his code, I... read more >>

Comparing repmat and bsxfun Performance 37

I've been asked repeatedly about the performance comparison between two MATLAB functions, bsxfun and repmat. These two functions can each help with calculations in which two arrays are... read more >>

Posts 1 - 10 of 29