グラフの座標で指定した範囲をトリミングしたい
Afficher commentaires plus anciens
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');
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Image Preview and Device Configuration dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!