グラフの座標で指定した範囲をトリミングしたい
Mostrar comentarios más antiguos
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');
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Image Preview and Device Configuration en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!