Rank: 61 based on 575 downloads (last 30 days) and 1 file submitted
photo

Erik Johnson

E-mail
Company/University
Univ of Southern California

Personal Profile:

Associate Professor & Associate Chair, Astani Department of Civil & Env. Engineering, University of Southern California
B.S. (1988), M.S. (1993), Ph.D. (1997), Aeronautical & Astronautical Engineering, University of Illinois at Urbana-Champaign
http://www.usc.edu/dept/civil_eng/johnsone/

Professional Interests:

 

Watch this Author's files

 

Files Posted by Erik
Updated   File Tags Downloads
(last 30 days)
Comments Rating
20 May 2009 Screenshot arrow.m Draw a line with an arrowhead. Author: Erik Johnson arrow, annotation, line, arrowhead, customization, potw 575 68
  • 4.6
4.6 | 72 ratings
Comments and Ratings on Erik's Files View all
Updated File Comment by Comments Rating
29 Dec 2011 arrow.m Draw a line with an arrowhead. Author: Erik Johnson Colby, John

Wonderful. Thank you, Erik!!!

21 Dec 2011 arrow.m Draw a line with an arrowhead. Author: Erik Johnson Kuifeng
01 Sep 2011 arrow.m Draw a line with an arrowhead. Author: Erik Johnson Jacopo

> Christopher This code, at least on >R2009a, looks very strange.
>close all; clc;
>figure(1)
>arrow([0;0;0],[1;0;0])
>arrow([0;0;0],[0;1;0])
>arrow([0;0;0],[0;0;1])
>axis([-1 1 -1 1 -1 1])
>I'm really having trouble with 3-D plots >and arrows pointing along the 3rd axis.

I got the same problem on Matlab R2010a (7.10.0)

31 Aug 2011 arrow.m Draw a line with an arrowhead. Author: Erik Johnson Will

Using arrow with this script yields an unusually long arrow in the z direction, which is quite annoying. I wish the z arrow didn't become long.

clc; clear; close all

xvector=[1 0 0];
yvector=[0 1 0];
zvector=[0 0 1];

figure
grid on
daspect([1 1 1])
xlabel('x [mm]', 'FontWeight', 'bold')
ylabel('y [mm]', 'FontWeight', 'bold')
zlabel('z [mm]', 'FontWeight', 'bold')
arrow([0 0 0],xvector, 'EdgeColor','k','FaceColor','k')
arrow([0 0 0],yvector, 'EdgeColor','b','FaceColor','b')
arrow([0 0 0],zvector, 'EdgeColor','r','FaceColor','r')
view([1 1 1])

Help would be greatly appreciated.

19 Jul 2011 arrow.m Draw a line with an arrowhead. Author: Erik Johnson Mische, William

This is great, I messed around with the annotations for 1.5 hours before finding this. Once I found it everything was working the way I wanted it to in a couple of minutes. Great Work!

Top Tags Applied by Erik
annotation, arrow, arrowhead, customization, graphics
Files Tagged by Erik
Updated   File Tags Downloads
(last 30 days)
Comments Rating
20 May 2009 Screenshot arrow.m Draw a line with an arrowhead. Author: Erik Johnson arrow, annotation, line, arrowhead, customization, potw 575 68
  • 4.6
4.6 | 72 ratings

Contact us at files@mathworks.com