supp:octave:contrib:arrow:start
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| supp:octave:contrib:arrow:start [2016/04/10 19:58] – [arrow_test.m] admin | supp:octave:contrib:arrow:start [2018/11/12 16:13] (current) – [turn.m] admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| Line 132: | Line 132: | ||
| </ | </ | ||
| + | |||
| ===== 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 157: | ||
| ## turn | ## turn | ||
| - | ## Author: rolf.becker < | + | ## Author: rolf.becker < |
| - | ## Created: | + | ## Created: |
| function [ ret ] = turn () | function [ ret ] = turn () | ||
| Line 176: | Line 176: | ||
| for i=0:n | for i=0:n | ||
| arrow(Z, | arrow(Z, | ||
| + | axis([-5 5 -5 5]) | ||
| + | axis square | ||
| hold on | hold on | ||
| arrow(M, | arrow(M, | ||
| Line 181: | Line 183: | ||
| hold off | hold off | ||
| grid on | grid on | ||
| - | axis([-5 5 -5 5]) | ||
| set(gca," | set(gca," | ||
| - | axis equal | ||
| - | axis square | ||
| % title(" | % title(" | ||
| xlabel(" | xlabel(" | ||
| Line 192: | Line 191: | ||
| P1=R*P1; | P1=R*P1; | ||
| P2=R*P2; | P2=R*P2; | ||
| - | sleep(0.001); | + | sleep(0.1); |
| endfor | endfor | ||
| endfunction | endfunction | ||
| - | |||
| </ | </ | ||
supp/octave/contrib/arrow/start.1460318308.txt.gz · Last modified: 2016/04/10 19:58 by admin
