I have written a simple function which calculates the tangent to a curve at a single point (x1, y1) and in addition using the central difference method, taking points in front and behind the point of interest for comparison against noisy data (due to using the diff function)
As I will be calling this function many times for a large set of input files, I would like to add two additional inputs to the function, a number, 1,...,n which increments the command
figure( insert number here)
and also a string - i.e. device number which updates the title of the figure
h=title('Results for INPUT DEVICE NUMBER HERE')
I would appreciate any help and thank everyone in advance for theory time and suggestions. Apologies if this is trivial but my exposure to MATLAB is limited.