User Tools

Site Tools


supp:octave:contrib:arrow:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
supp:octave:contrib:arrow:start [2016/04/10 19:59] – [Arrow Vector] adminsupp:octave:contrib:arrow:start [2018/11/12 16:12] admin
Line 1: Line 1:
-====== Draw Vector Arrows ======+====== Rotate Vectors and Draw Arrows ======
  
  
Line 132: Line 132:
  
 </file> </file>
 +
  
 ===== turn.m ===== ===== turn.m =====
- 
-Rotate three vectors by means of rotation matrix. 
  
 <file octave turn.m> <file octave turn.m>
- +## Copyright (C) 2018 rolf.becker
-## Copyright (C) 2011 rolf.becker+
 ##  ## 
 ## This program is free software; you can redistribute it and/or modify ## This program is free software; you can redistribute it and/or modify
Line 157: Line 155:
 ## turn ## turn
  
-## Author: rolf.becker <rolf.becker@NB-RB+## Author: rolf.becker <rolf.becker@hsrw.eu
-## Created: 2011-04-04+## Created: 2018-11-12
  
 function [ ret ] = turn () function [ ret ] = turn ()
Line 176: Line 174:
  for i=0:n  for i=0:n
  arrow(Z,M,scl,sty,lw)  arrow(Z,M,scl,sty,lw)
 + axis([-5 5 -5 5])
 + axis square
  hold on  hold on
  arrow(M,M+P1,scl,sty,lw)  arrow(M,M+P1,scl,sty,lw)
Line 181: Line 181:
  hold off  hold off
  grid on  grid on
- axis([-5 5 -5 5]) 
  set(gca,"fontsize",24,"xtick",-5:5,"ytick",-5:5)  set(gca,"fontsize",24,"xtick",-5:5,"ytick",-5:5)
- axis equal 
- axis square 
 % title("Rotating Vectors"); % title("Rotating Vectors");
  xlabel("x");  xlabel("x");
Line 192: Line 189:
  P1=R*P1;  P1=R*P1;
  P2=R*P2;  P2=R*P2;
- sleep(0.001);+ sleep(0.1);
  endfor  endfor
 endfunction endfunction
- 
 </file> </file>
  
  
supp/octave/contrib/arrow/start.txt · Last modified: 2018/11/12 16:13 by admin