-2

How to make Matlab draw a plane like this? Can't find the settings for plot command in documentation. Maybe there is another command for planes like this?

enter image description here

Bootuz
  • 530
  • 3
  • 6
  • 16

1 Answers1

4

If you are using MATLAB 2015b and higher, check the option of AxisLocation.

figure
hold on
axis([-1 1 -1 1])
quiver(0,0,-1,1,'k')
quiver(0,0,1,1,'k')

ax = gca;

ax.XAxisLocation = 'origin';
ax.YAxisLocation = 'origin'; 

enter image description here

Adriaan
  • 17,741
  • 7
  • 42
  • 75
Siva Srinivas Kolukula
  • 1,251
  • 1
  • 7
  • 14