-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzeigerplot_orig_linked.m
More file actions
41 lines (38 loc) · 1.31 KB
/
zeigerplot_orig_linked.m
File metadata and controls
41 lines (38 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
function zeigerplot_orig_linked(varargin)
%*************************************************************************
% Autor : David Grimbichler
% Filename : zeigerplot_orig_linked.m
% Date : 25.04.2016
% Version : 1.0
%*************************************************************************
% ZEIGERPLOT_ORIG_LINKED(vec_startpoint,vec1,vec2,...) plots the given
% vectors with a startpoint.
%
% function ZEIGERPLOT_ORIG_LINKED(varargin)
% varargin = variable input arguments
%
% plotsetups: axis equal;
% grid on;
% hold on;
%*************************************************************************
% used functions: - quiver()
% - set
% - findobj
%*************************************************************************
nVarargs = length(varargin);
grid on, axis equal;
hold on;
arrow=0;
refStart=0;
for k = 1:nVarargs
refStart=refStart + arrow; arrow=(varargin{k});
if k > 1
quiver(real(refStart),imag(refStart),real(arrow),imag(arrow));
end
end
hAutoScale=findobj('-property','AutoScale');
set(hAutoScale,'AutoScale','off')
end
% ************************************************************************
% End of function
% ************************************************************************