フィルターのクリア

I have some .txt files containing 2 columns of number (x,y) of each point identified by the x,y coordinates. I should find a way to produce an image file (the format is not important, it may be a .jpg for example) in which the x, y coordinate ar

1 回表示 (過去 30 日間)
I have some .txt files containing 2 columns of number (x,y) of each point identified by the x,y coordinates. I should find a way to produce an image file (the format is not important, it may be a .jpg for example) in which the x, y coordinate are identified of the .txt file (x and y coordinates). How can I concert the coordinates into an image?
Thanks!
  2 件のコメント
Birdman
Birdman 2018 年 3 月 13 日
I closed your other questions since they are same with this one.

サインインしてコメントする。

採用された回答

KSSV
KSSV 2018 年 3 月 13 日
A = importdata('file1.txt') ;
B = importdata('file2.txt') ;
x1 = A(:,1) ; y1 = A(:,2) ;
x2 = B(:,1) ; y2 = B(:,2) ;
plot(x1,y1,'r') ;
hold on
plot(x2,y2,'b') ;
saveas(gcf,'myimage.png')
  3 件のコメント
KSSV
KSSV 2018 年 3 月 13 日
yes......it shall work......
A-J KHAN
A-J KHAN 2018 年 3 月 14 日
can you please help me how to used this code for whole folder at once because its very hard to test one by one contour. Thanks

サインインしてコメントする。

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by