Loren on the Art of MATLAB

Turn ideas into MATLAB

Note

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

Posts 21 - 30 of 40

Results for: How To

What Kind of MATLAB File is This? 15

We just had an interesting thread at MathWorks prompted by a customer request to programmatically distinguish between script and function MATLAB files. The File Browser already shows these separately. I will show some ideas we had and what we agreed was a good way to attack this.... read more >>

Duality Between Function and Command Syntax 4

A long time ago, I covered the topic of the duality between command and function syntax.... read more >>

Using the MATLAB Unit Testing Infrastructure for Grading Assignments 8

Steven Lord, Andy Campbell, and David Hruska are members of the Quality Engineering group at MathWorks who are guest blogging today to introduce a new feature in R2013a, the MATLAB unit testing infrastructure. There are several submissions on the MATLAB Central File Exchange related to unit testing of MATLAB code. Blogger Steve Eddins wrote one highly rated example back in 2009. In release R2013a, MathWorks included in MATLAB itself a MATLAB implementation of the industry-standard xUnit testing framework.

If you're not a software developer, you may be wondering if this feature will be of any use to you. In this post, we will describe one way someone who may not consider themselves a software developer may be able to take advantage of this framework using the example of a professor grading students' homework submissions. That's not to say that the developers in the audience should move on to the next post; you can use these tools to test your own code just like a professor can use them to test code written by his or her students.

There is a great deal of functionality in this feature that we will not show here. For more information we refer you to the MATLAB Unit Testing Framework documentation.

... read more >>

Understanding Array Preallocation 6

Today I would like to introduce guest blogger Jeremy Greenwald who works in the Development group here at MathWorks. Jeremy works on the Code Analyzer and will be discussing when preallocating MATLAB arrays is useful and when it should be avoided.... read more >>

Partitioning a Vector 9

Recently on the MATLAB newsgroup, there was a thread asking how to split up a vector into pieces which were each monotonically increasing by the value 1. The post got several answers which I did not read first. Here's my thinking.... read more >>

Learning to Love Regular Expressions 8

Today I’d like to introduce guest blogger Sarah Wait Zaranek who works for the MATLAB Marketing team here at MathWorks. Sarah previously has written about using GPUs in MATLAB. Sarah will be discussing how she got started using regular expressions.... read more >>

The MATLAB R2012b Desktop – Part 3: MATLAB Apps 5

Today, David Garrison, our guest blogger, will complete his series on the R2012b Desktop.... read more >>

The MATLAB R2012b Desktop – Part 2: Customizing the R2012b MATLAB Desktop 15

Today, David Garrison, our guest blogger, will continue his series on the R2012b Desktop.... read more >>

The MATLAB R2012b Desktop – Part 1: Introduction to the Toolstrip 58

Today I’d like to introduce a guest blogger, David Garrison, who is a MATLAB Product Manager here at MathWorks. Over the next few blog posts, David will take us through a series of posts describing some exciting features in the new R2012b MATLAB release:... read more >>

Thoughts about Anonymous Functions 18

One of the reasons I like using anonymous functions is because they allow me to express whatever function I want to use as a function of the relevant arguments in different contexts.... read more >>

Posts 21 - 30 of 40