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
Related
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
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 import .csv files in SAS and they include dates and times.
In csv files, they are defined as "m-d-yyyy hh:mm:ss" (I am not allowed to change the data in excel but I have to work just on SAS).
The problem is that when SAS reads it, it thinks m is a and d is m. :(
For example, what is "9-1-2016 8:00:57" in excel is converted as 09JAN16:08:00:57 in SAS.
I want formats like 01SEP16:08:00:57.
How can i accurately import dates from .csv files in SAS?
Thanks.
I see that you've solved this by using R instead. In case anyone wants an answer for this in future:
One thing you can try is to change your options so that SAS reads as MDY instead of DMY. The way to do this is to run:
options datestyle=mdy;
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 the "Core Animation Frames per second" log into csv or excel file to be able to plot it and access it from my code for automation. Can someone let me know how to extract this data from the .trace file and export to a csv file?