フィルターのクリア

how to shift origin or graph without changing the data value.

12 ビュー (過去 30 日間)
PetronasAMG
PetronasAMG 2018 年 2 月 3 日
回答済み: Star Strider 2018 年 2 月 3 日
Let's say you have a (x,y) = (1,1) however is there a possible way to show another quadrant of the graph? Every time i try to set the limit, it just changes the interval and does nothing to it. Please help. i looked into x1 =gca?? ax.XAxisLocation? i am not too sure how to utilize these functions nor what they do please help!!

採用された回答

Star Strider
Star Strider 2018 年 2 月 3 日
It’s easier to demonstrate if you plot something in all four quadrants.
Example
x = [-1 1 -1 1];
y = [-1 1 1 -1];
figure(1)
plot(x, y, 'pg', 'MarkerSize',10, 'MarkerFaceColor','g')
Ax = gca;
Ax.XAxisLocation = 'origin';
Ax.YAxisLocation = 'origin';
axis([-1.5 1.5 -1.5 1.5])
grid on

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by