Date: Dec 6, 2012 12:34 PM
Author: Zeineb
Subject: Plots: problem with ticks and legend

Hello, 

First I wanted to know if there was a way to use crossing ticks on Matlab plots? (I only found in and out ticks, for now).
Also, is it possible to keep ticks on the x and y axis, but remove them from the top and bottom axis (while keeping the box)?

Finally I have a problem with a function I used to be able to move the legend, but I still have no idea of how to fix it.
Here are the function and the variables:

%
afStartingPoint_FU(1) = (afStartingPoint(1) - afXAxisLimits(1) )/ (afXAxisLimits(2) - afXAxisLimits(1) )* fXAxisLength + fXAxisPosition;
afStartingPoint_FU(2) = (afStartingPoint(2) - afYAxisLimits(1) )/ (afYAxisLimits(2) - afYAxisLimits(1) )* fYAxisLength + fYAxisPosition;
afEndingPoint_FU(1) = (afEndingPoint(1) - afXAxisLimits(1) )/ (afXAxisLimits(2) - afXAxisLimits(1) )* fXAxisLength + fXAxisPosition;
afEndingPoint_FU(2) = (afEndingPoint(2) - afYAxisLimits(1) )/ (afYAxisLimits(2) - afYAxisLimits(1) )* fYAxisLength + fYAxisPosition;
%
handleToAnnotation1 = annotation( ...
strAnnotationType, ...
[afStartingPoint_FU(1) afEndingPoint_FU(1)], ...
[afStartingPoint_FU(2) afEndingPoint_FU(2)]) ;


Thanks a lot for your help!!