-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzeigerplot_to_Origin.m
More file actions
35 lines (31 loc) · 1.08 KB
/
zeigerplot_to_Origin.m
File metadata and controls
35 lines (31 loc) · 1.08 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
function zeigerplot_to_Origin(varargin)
%*************************************************************************
% Autor : David Grimbichler
% Filename : zeigerplot_to_origin.m
% Date : 25.04.2016
% Version : 1.0
%*************************************************************************
% ZEIGERPLOT_TO_ORIGIN(vec1,vec2,vec3,vec4,...) plots the given
% vectors to the origin.
%
% function ZEIGERPLOT_TO_ORIGIN(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;
for k = 1:nVarargs
refStart=(varargin{k}); arrow=-(varargin{k});
quiver(real(refStart),imag(refStart),real(arrow),imag(arrow));
end
hAutoScale=findobj('-property','AutoScale');
set(hAutoScale,'AutoScale','off')
end