How can I change de origin of a particular vector in a compass
Show older comments
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');
Answers (0)
Categories
Find more on Assembly in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!