Category Archives: software

Elements of MATLAB Style

Style is an important aspect of writing, and also of programming. While MATLAB is a quick and easy language in which to program, style should not be neglected. Good style aids readability, which in turn makes it easier to debug … Continue reading

Posted in software | Tagged | 2 Comments

How to Print a Page Across Multiple Pages with Adobe Acrobat

Occasionally I need to proof a PDF document that is too small to read comfortably when printed in the usual way. This is the case with my columns for SIAM News, as SIAM News is A3 format whereas my printer … Continue reading

Posted in software | Tagged , | Leave a comment

What’s New in MATLAB R2017a?

MATLAB R2017a was released last week. Many of the changes reported in the release notes are evolutionary, building on and extending major new features introduced previously. For example, the Live Editor continues to gain expanded capabilities. In this post I … Continue reading

Posted in software | Tagged | Leave a comment

Tracing the Early History of MATLAB Through SIAM News

A recent blog post by Ned Gulley points out that the new mathematics gallery (“Mathematics: The Winton Gallery”) at the Science Museum, London, contains a copy of the disk and manual for MATLAB 1.3, from 1985, sitting next to a … Continue reading

Posted in software | Tagged , | Leave a comment

Good Times in MATLAB: How to Typeset the Multiplication Symbol

The MATLAB output >> A = rand(2); whos Name Size Bytes Class Attributes A 2×2 32 double will be familiar to seasoned users. Consider this, however, from MATLAB R2016b: >> s = string({‘One’,’Two’}) s = 1×2 string array “One” “Two” … Continue reading

Posted in LaTeX, software | Tagged | Leave a comment

What’s New in MATLAB R2016b

MATLAB R2016b was released in the middle of September 2016. In this post I discuss some of its new features (I will not consider the toolboxes). This is personal selection of highlights; for a complete overview see the Release Notes. … Continue reading

Posted in software | Tagged | Leave a comment

Implicit Expansion: A Powerful New Feature of MATLAB R2016b

The latest release of MATLAB, R2016b, contains a feature called implicit expansion, which is an extension of the scalar expansion that has been part of MATLAB for many years. Scalar expansion is illustrated by >> A = spiral(2), B = … Continue reading

Posted in software | Tagged | 10 Comments

The One-Line Maze Program in MATLAB

A classic one-line program for the Commodore 64 microcomputer is 10 PRINT CHR$(205.5+RND(1)); GOTO 10 This is essentially what was printed in the section “Random Graphics” of the Commodore 64 User’s Guide (1982). The program prints a random maze that … Continue reading

Posted in software | Tagged , | 3 Comments

Iterating MATLAB Commands

Some MATLAB commands can be “applied to themselves”. A good example is help help, which provides help on the help function. For what other functions fun is fun fun a legal statement that produces something interesting? Here are some examples … Continue reading

Posted in software | Tagged | 2 Comments

Programming the Commodore PET

My first programming languages were Fortran, learned in my mathematics degree, and Basic, which was the language built into the ROM (read only memory) of the Commodore PET. The PET—one of the early microcomputers, first produced in 1977—stored programs on … Continue reading

Posted in software | Tagged | Leave a comment