グラフの座標で指定した範囲をトリミングしたい
Show older comments
csvファイルを下記のコードでプロットしました。グラフ(添付画像)の座標で指定した範囲をトリミングしたいのですが可能でしょうか。例えば、(0,0),(4,0),(0,4),(4,4)で囲われた部分をトリミングするというような具合です。
csvファイルは(1,1),(3,3),(5,5),(7,7),(9,9)が入力してあります。

filename = 'y=x.csv';
D = readmatrix(filename);
x = D(:,1);
y = D(:,2);
plot(x,y,'.')
xlim(gca,[0 10]);
ylim(gca,[0 10]);
xlabel('x');
ylabel('y');
Accepted Answer
More Answers (0)
Categories
Find more on Image Preview and Device Configuration in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!