I have files with extension .fid
I want to read the data off of the file with matlab preferably. Is there anyway to do this with a custom file format like this?
If not, is there any other way I can transform this custom file format into something else? such as .csv?
Not familiar with this file type, but if it's human-readable, if you can open it in text editor and see the data, then there shouldn't be a problem. You can textscan to import data, if it's properly formatted, or fileread to import the entire file as string. You can even use uiimport to import data in interactive mode. Check MATLAB documentation for Data import and export
Related
I have a consistent bpmn file (similar to xml file) and i would like to read it with matlab and store the all file data in one string or char attribute. I have tried with textread(file, format) but the best i can have is a 2358796x1 char and then assemble each line to recreate the file but it's a very long process.
Is there another function to do this ?
Thanks for helping.
You can use this xml2struct.m function, to read xml files and convert all the content to MATLAB struct variable.
Newer versions of Matlab ship with an xmlread function. Have you taken a look at that?
I want to open a .dat file from INCA in CANoe but for that I need to convert it into a logging file format: ascii, blf, mdf4.... does anybody know how to do it? I can't find anything on the internet.
There should be an option in ETAS menu bar.
Check under Utilities > Measure Data Converter.
You can select the file required to be converted and also which format you need to convert to.
I have a CSV file with data inside like:
10_09xyz,xy1,11,PX,....
...and I want to import it into MATLAB.
Is it possible to import the mixed data like 10_09xyz? Which format do I have to use?
I tried the following, but it failed:
formatSpec = %C%C%f%s%f';
T = readtable('XYZ.csv','Delimiter',',','Format',formatSpec);
The following warning appears:
"Variable names were modified to make them valid MATLAB identifiers."
Thanks for your help.
You can manually do it at least. Just use matlab open the folder and double click the csv file.
Please check my screenshop from matlab
I am trying to read data from text file (which is output given by Tesseract OCR) and save the same in excel file. The problem i am facing here is the text files are in space separated format, and there are multiple files. Now i need to read all the files and save the same in excel sheet.
I am using MATLAB to import and export data. I even thought of using python to convert the files into CSV format so that i can easily import the same in MATLAB and simply excelwrite the same. But no good solution.
Any guidance would be of great help.
thank you
To read a text file in Matlab you can use fscanf or textscan then to export to excel you can use xlswrite that write directly to the excel file.
I am trying to import a text file in SPSS to be able to save it to .sav file. The import itself is successful and I am able to see the data. However when I save the file as .sav from SPSS I am ending up with a file of 0 bytes.
What am I doing wrong?
What I did was save the .txt as .xls and then import it to SPSS and it works like a charm