How can I change de origin of a particular vector in a compass

2 Ansichten (letzte 30 Tage)
Marcos Perez
Marcos Perez am 14 Jul. 2015
Bearbeitet: Walter Roberson am 14 Jul. 2015
O=3.5355 + 3.5355i;
OI=-3.5355 - 3.5355i;
R=1.6633 + 7.8252i;
P=R-O; %I want to put the origin of 'P' vector at the end of the 'O' vector
TT=[O R P OI];
clr=[1 0 0;0 1 0;0.98 0.59 0.1;0 0 1];
hh=compass(TT);
set(hh,{'color'},num2cell(clr,2),'LineWidth',3);
legend({'O','O+P','P','OI'},'FontName','Calibri Light','LineWidth',1,'FontSize',9,'Orientation','horizontal','Location','SouthOutside');

Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by