Info

この質問は閉じられています。 編集または回答するには再度開いてください。

AND operation for textfiles in MATLAB

1 回表示 (過去 30 日間)
Chethan
Chethan 2013 年 5 月 17 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I've 3 .txt files. I want to perform and operation to these 3 text files and to save the output in a new text file.
fid = fopen(AND('a.txt','b.txt',c.txt');
will this work as per my requirements? but i want to save in a new text file, how can i go for it?
those text files have the image names separated by a special symbol which is not a character. i want to perform logical and for those text files.
  1 件のコメント
Image Analyst
Image Analyst 2013 年 5 月 17 日
I don't even know what that means. Are you trying to do a binary AND operation on the ASCII values of the text characters? Why on earth would you want to do that? Or are you simply trying to concatenate three text files together?

回答 (1 件)

David Barry
David Barry 2013 年 5 月 17 日
No this will not work. Just try and imagine all the possible ways that you could define the merge option for three text files and then consider why this is not a straight foward operation e.g. horzcat, vertcat, overwrite to name a few.
What you will need to do is read in each text file separately, then merge the data in MATLAB in to whatever format you require and then write this to a new text file.

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by