Category archives for Matlab

From Matlab to Java To Matlab

Lately, most of my testers are either Java or Matlab. You can’t do (not in linear time 🙂 ) your Matlab magics with Java, and you can only dream on your Java OOD capabilities when working with Matlab… A nice workaround is to combine your testers; work on your main programming language of interest, and […]

Matlab – pass variable by reference?

The short answer – N/A 😦 The quick workaround: function [ varByRef ] = my_function ( varByRef )   …   varByRef = some_val; end  

Matlab – simple half-toning example

Hi 🙂 Let’s Map each pixel from the source image (grayscale) to 4 pixels in the destination image (binary), such that each destination pixel is “lighted” with white (1), based on a different thresholding: [0-50] – do nothing [51-101] – light #3 [102-152] – light #2 [153-203] – light #4 [204-255] – light #1   […]