Hi,
I have a large number of .cti files and I would like to convert all of them at the same time to .txt.
Thanks

1 件のコメント

demos serghiou
demos serghiou 2021 年 8 月 5 日
thanks I will try the method but the whole point is to convert multiple .cti files to .txt files as opening a single file can be done easily in notepad

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

 採用された回答

Walter Roberson
Walter Roberson 2021 年 8 月 4 日

0 投票

6 件のコメント

demos serghiou
demos serghiou 2021 年 8 月 5 日
thanks I will try the method but the whole point is to convert multiple .cti files to .txt files as opening a single file can be done easily in notepad
Walter Roberson
Walter Roberson 2021 年 8 月 5 日
There is no support in MacOS, Linux, or Windows for the possibility of opening multiple files simultaneously. The operating systems only support opening files in sequence. The second link I posted shows you how to open files in sequence in MATLAB.
demos serghiou
demos serghiou 2021 年 8 月 6 日
Hi Walter,
thanks for the help. The solution is simple afterall. You select all of the cti files and click open in the open tab and open using notepad. This converts all of the .cti files to .txt file.
Walter Roberson
Walter Roberson 2021 年 8 月 7 日
As far as I could see, .cti files are already text files with a different extension, so if the task is just to convert them to .txt files then renaming would do.
Once you have them as text files you need to read them in MATLAB, which is what the link for looping over files does in combination with the code for extracting information from the files in the first link.
demos serghiou
demos serghiou 2021 年 8 月 7 日
Hi my previous comment was wrong. Here you can find the solution:
The answer is opening the cmd promt within the folder and by entering the ren *.* *.txt command
Then importing to matlab is easy
Walter Roberson
Walter Roberson 2021 年 8 月 7 日
MATLAB can read text files with .cti file extension, as text files (it has no special knowledge of their content.) For some of the tools you might need to tell MATLAB that the file is text. For example,
S = readlines('woofer8319_20210522.cti');

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Text Data Preparation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by