From: Jan on
Hi,

i want to let matlab generate graph paper, with an one milimeter scale, in which i wanna plot some functions.

getting the grind isn't a problem but, the scale i get when i wanna print the figure is not true.
I need 1cm = 1 unit in y and x.

Can someone help me to get it work, here is the script i've done yet:

hold on
axis square
set(gcf, 'PaperUnits', 'centimeters')
xlabel('x-achse')
xlabel('y-achse')
for ind=-90:90; ind=ind+1;
x = [ind/10 ind/10]
y = [-9 9]
line(x,y)
end

for ind=-90:90; ind=ind+1;
x = [-9 9]
y = [ind/10 ind/10]
line(x,y)
end

Thank you for your help.