How to plot vector with origin not at 0

13 ビュー (過去 30 日間)
Niklas Kurz
Niklas Kurz 2020 年 11 月 19 日
編集済み: VBBV 2020 年 11 月 19 日
I try to experiment with vectors a little, so that's where I stuck: I got a vector s
s = t.* [1;1]; %t = 0:1:10
and a displacement vector
d = [10;0];
So both incorporated the outcoming vector should be looking like
V = s+d
but if I try to plot it, for example with:
plotv(V)
I get some crazy resulst (splits). Of course I can work around: for instance
plot(d(1,1)+ s(1,:), s(2,:))
does the job done. But isn't there a neater way?

採用された回答

VBBV
VBBV 2020 年 11 月 19 日
編集済み: VBBV 2020 年 11 月 19 日
%if true
plot(V(1,:),V(2,:))
plotv is not same as plot

その他の回答 (0 件)

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by