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

1 回表示 (過去 30 日間)
Marcos Perez
Marcos Perez 2015 年 7 月 14 日
編集済み: Walter Roberson 2015 年 7 月 14 日
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');

回答 (0 件)

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by