Steve on Image Processing and MATLAB

Concepts, algorithms & MATLAB

R2010b – MATLAB changes 4

Posted by Steve Eddins,

Last week I wrote about Image Processing Toolbox changes in R2010b, and this week I want to mention some MATLAB changes that particularly caught my eye.

I should start by saying that I don't plan to mention everything here. I encourage you to take a look at the MATLAB release notes to see what changes might be of interest to you. You should also take a look at Mike on the MATLAB Desktop and Loren on the Art of MATLAB for their take on R2010b.

First, in the "small gems" category, I love the new Ctrl-J keyboard shortcut for wrapping comments. I especially appreciate that Ctrl-J will wrap a whole paragraph of comments without having to select the paragraph first. This is something I do all the time when preparing blog posts.

Second, I like the variable highlighting feature in the Editor. I don't know about this feature until one day it just started happening in the development build. Here's a screenshot that Mike took showing the feature. Read his blog post for more details.

A few months ago, a developer from another team stopped by my office to interview me about image files and image file I/O in MATLAB. It turns out he was working on a file previewer in the Current Folder browser. It's shipping now. Here's a screenshot of the feature. (The screenshot is showing some of the files from my blog materials folder.)

On the math side, there's new support for arithmetic operators on uint64 and int64 data types.

a = intmax('uint64')
a =


a/2 + 5
ans =


On the programming side, object-oriented programming in MATLAB now supports the notion of enumerations.

type WeekDays
classdef WeekDays
      Monday, Tuesday, Wednesday, Thursday, Friday

today = WeekDays.Tuesday
today = 


  Name       Size            Bytes  Class       Attributes

  today      1x1               104  WeekDays              

In the file import/export category there are several new things to mention:

  • A new VideoWriter class. Unlike the old avifile, the new class works cross-platform and can write files larger than 2 GB.
  • netCDF 4 support
  • N-channel JPEG 2000 support
  • New functions added to low-level interfaces for HDF4, HDF5, and netCDF
  • Many new examples in the command line help for the HDF5, netCDF, and CDF low-level interfaces.

Do you have R2010b yet? What do you think?

Get the MATLAB code

Published with MATLAB® 7.11


Comments are closed.

4 CommentsOldest to Newest

Royi replied on : 1 of 4
R2010b is great. No doubt you make it better each time. What I miss the most is a built in 64bit Compiler. So things would work perfectly out of the box just like the 32bit version.
Queffurust replied on : 2 of 4
Salut! R2010b has a lot of nice features and my favorite is "Change Current Folder to folder-name" ... but doesn't work (limitation mentionned in the doc) if only 1 file open( enhancement request already submitted) Variable highlighting ... not really convinced about this feature ... I would prefer M-lint to highlight variables which are iskeyword : >> path = 3; (enhancement request not yet submitted!) Comparison folder is a tool I use every week , and I can say it is better and better release after release. Aurélien
dierk replied on : 3 of 4
Where can I find more info on netcdf in matlab... Has anyone found a command to work like 'ncload' That loads the variables and closes the netcdf file to save memory.. thanks
Steve replied on : 4 of 4
Dierk—If you can update to R2011a, there are new easier-to-use functions for working with netCDF files. See this doc page. For earlier releases, such R2010b, there are low-level netCDF functions that require more steps and more detailed knowledge about netCDF files to use. See this R2010b doc page. Or you can go to the MATLAB Central File Exchange and search for "netcdf".