annotate +draw/prompt_line.m @ 103:bc5db54f9efd
feature/arclen-param
fzero_vec, integral_vec and spline are now local functions in Curve. Renamed arcLengthStretch to arcLengthParametrization. Removed plot_derivative. Added some comments and extra lines + removed unneccesary lines. arcLength is now a method and not static. Constructor does not accept difference operator anymore.
author |
Martin Almquist <martin.almquist@it.uu.se> |
date |
Mon, 07 Dec 2015 17:24:28 +0100 |
parents |
48b6fb693025 |
children |
|
rev |
line source |
0
|
1 function [C,h] = prompt_line(s,varargin)
|
|
2 default_arg('s',[])
|
|
3 if ~isempty(s)
|
|
4 fprintf(s,varargin{:});
|
|
5 end
|
|
6
|
|
7 a = draw.prompt_point('Enter starting point\n');
|
|
8 p = draw.point(a);
|
|
9 p.Color = Color.green;
|
|
10 p.MarkerSize = 24;
|
|
11 b = draw.prompt_point('Enter stopping point\n');
|
|
12 p = draw.point(b);
|
|
13 p.Color = Color.red;
|
|
14 p.MarkerSize = 24;
|
|
15
|
|
16 C = grid.Curve.line(a,b);
|
|
17 h = C.plot();
|
|
18 uistack(h,'bottom');
|
|
19 end |