# Ensuring Positive Values – Part 26

My last post started the discussion about how to ensure data values met certain constraints. The solutions I talked about were ones where you checked at certain places during a calculation, but the constraints were not continuously enforced. If I want to... read more >>

# Ensuring Positive Values – Part 14

Do you sometimes need to be sure an array has only bounded, positive values? At least one customer asked about this recently and noted that it could be quite involved. Depending on the duration for which you need to ensure... read more >>

# Constrained Sorting of Arrays37

In a variety of applications, customers have requested a way to sort arrays subject to some constraints. One use case is when a row in an array represents a data record. Clearly, to sensibly sort data of this kind, you... read more >>

# MATLAB Behavior: for34

Conventional wisdom for programming MATLAB used to be that using for loops automatically forced a program to suffer from poor performance. Since MATLAB R13 (version 6.5), MATLAB has taken advantage of some innovations that accelerate many for loops so the code has... read more >>

# A Case for Divergence between MATLAB and C14

There are some functions in MATLAB that we designed to be similar to their counterparts in other languages. There are also some functions that we deliberately designed differently. A case in point is the syntax and behavior for the switch... read more >>

# Carving a Dinosaur36

Today I’d like to introduce a guest blogger, Ben, who is consultant over in The MathWorks UK. Some of you may have come across his customer projects and demos on image processing. He’s going to talk about one of those demos here. ... read more >>

# Calculus with Empty Arrays24

MATLAB has had empty arrays since before I started using the program. When I started, the only size empty array was 0x0. When version 5 was released, empty arrays came along for the N-dimensional ride and got more shapely. ... read more >>

# Handling Discrete Data

Discrete data arise in many applications and the data may be numeric, or non-numeric, often referred to as categorical. Not all data are strictly numeric, and other characteristics can be pertinent or useful. You can use a variety of techniques and ... read more >>