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 Kommentar

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

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 4 Aug. 2021

0 Stimmen

6 Kommentare

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
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.
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.
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.
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
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');

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by