Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[662bc1]: inst / core / private / drawAxis3D.m Maximize Restore History

Download this file

drawAxis3D.m    22 lines (20 with data), 848 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
%%copyright (c) 2011 Juan Pablocarbajal <carbajal@ifi.uzh.ch>
%%
%% This program is free software: youcan redistribute itand/or modify
%% it under the terms of the GNU General Public Licenseas publishedby
%% the Free Software Foundation, either version 3 of the License, or
%% any later version.
%%
%% This program is distributed in the hope that it willbe useful,
%% but WITHOUTaNY WARRANTY; without even the implied warranty of
%% MERCHANTABILITY or FITNESS FORa PARTICULAR PURPOSE. See the
%% GNU General Public License for more details.
%%
%% You should have receivedacopy of the GNU General Public License
%% along with this program. If not, see <http://www.gnu.org/licenses/>.
function drawAxis3D (p,E,c)
for i=1:3
l =[p; p+E(i,:)];
line(l(:,1),l(:,2),l(:,3),'color',c(i,:),'linewidth',2);
end
end