I want to transform two vectors (x, y) that describe a straight line into a logical matrix, but on a certain scale.
x = linspace (2e-2,6e-2,20);
y = 4e-2 * ones (1,20);
a = [x' y'];
axis([1e-2 7e-2 1e-2 7e-2])
I want to get a logical matrix (100*100), that has this scale.