As a solution to some posts a while ago about reading compressed matlab
7 files in matlab 6, i posted load5 to the file exchange (7734) which
does this. Note that the "Other Requirements" field on the FX is
outdated as the zip file has both windows and linux versions and DOES
search the matlab path if the file is not found in the current
...How to read and plot binary file in matlab?
I have binary file created from labview "Analog In" and "write to
file" VI's.their are three channels in labview application.
In matlab I am trying to read this binary file using "fread" command
but I dont know how to separate each channel in matlab fread command
and save it to ascii file?
saving should be like this .
first column sholud be first channel of labview
second column should be secong channel of labview
and so on
any one who can help ?
waiting for response
...how to call matlab file to another matlab file
i am working on simulation of power system using matlab. for that i
have written codes for generation side and line side separately. Now i
want to use the result of generation file to line file....so how can i
use the result of one file to another....
eg i have gen.m file from that i can get hourly gen data....now i want
to compare that data to line.....and line modelling is done in
separate file line.m so i want to call result of gen.m file to line.m
waiting for ur valuable suggestion
...How to read Labview binary files in Matlab
I have seen this asked on here before, but with no real answers.
Assuming you dont have access to labview, is there any way to load
labview binary files into Matlab? I have someone sending me files
and I understand that you can save them as .MAT from labview, but I
dont have that option.
Do you have access to Labview, with application builder? In that case
make a VI that converts your labview file to MAT.
or If use matlabnode in labview.
I think can read sgl or dbl files made in Labview in matlab, however
if I remember there is some difference in the format. But it is not
o...Read Matlab 7 .mat files in Matlab 6.5 -- SOLUTION
Thank you Dan for the suggestion of topic change (from MAT file format
R13 vs R14, Please Read even if you viewed other post).
I have submitted a linux x86 version of the load5 to the File Exchange,
i guess it will take a couple days to get up there. If you need it
sooner, let me know. Also, still looking for the Windows versions of
Matlab 6 dll's (libmx.dll, libmex.dll, libmat.dll) plus the .def files
and the mexversion so I can compile in Windows. If you have these,
please reply so I can set up a way to get them from you. Below is an
example using the load5 mex function from linux. ...load5
After lots of hunting around with old friends, I was able to locate
Windows libraries of Matlab 6.5. In addition, I have put a couple
"extras" into the load5 command.
As soon as it appears in the file exchange (and i notice it), i will
update the file to a .zip file which will contain both Windows and
Linux versions of load5. Note that if you use this MEX file with R14
in linux, you will need to copy the libz.so.1.2.2 to either the matlab
directory and modify the symbolic links libz.so and libz.so.1, or put
it in your path and make sure the LD_LIBRARY_PATH has your directory
prece...problems with code to convert ncs file in matlab under Matlab R14(2004)
Hello to everyone, Ill try to run Nlx2MatCSC ( a code from neuralynx than convert continuous file to matlab variables) in Matlab R14 (2004), and it doesn't work:
When I type:
>> [Timestamp, ChanNum, SampleFrequency, NumValSamples, Samples] = Nlx2MatCSC(Filename, [1 1 1 1 1], 0, 3, [0 4 9]);
??? Attempt to execute SCRIPT Nlx2MatCSC as a function.
I heard that this code is running in Matlab 2007a and newer, but...what about this old version?
...How to read a binary file saved in C++ into Matlab
I created a binary file ( myBinary.bin) saved in C++, and I want to
read this data file into Matlab for graphical purposes. The
"myBinary.bin" file contains the header class and the
Here is a source code in C++:
ofstream myBinaryFile("myBinary.bin", ios::bianry);
myBinaryFile.write( reinterpret_cast <const char*> (&Header),
myBinaryFile.write( reinterpret_cast <cost char*> (myArray),
The length of the Header class = 500.
The Header class defines in int, double, and char.
Please help me out to read thi...Loading/read problems with tsv files in Matlab
I am trying to load files with file extension .tsv
I used a activex control in my guide, and added a functionality for double click using a command "uigetfile" to browse the file.
I could retrive filename, pathname, filterindex through this command.
I am stuck up with loading the file to do my manuplations, any suggestion would be helpful.
My tsv file contains like 30 columns and huge number of rows,
mon tue wed thu ...
100 200 300 400..
I need to read the first line of the matrix in text.
I tried to use with textread function , but i get error...Labview binary file format, reading in matlab
I have some binary files that I wrote in Labview containing data of type double. I'm trying to load the data in Matlab but I am not having much success. In Matlab I am using the fread command and specifying the type as double with the machine format as 'b' for big-endian. But the values I get do not make any sense. Does anyone know what format Labview saves the data in? Is it big-endian? Or something else?
...Read LabView binary file timestamp into Matlab
In case it is useful to someone:
If you need to read a LabView binary data file into Matlab, it is
tricky to read in the time data because of the way that LabView writes
its timestamp into the binary file. Note that the LabView time
convention is miliseconds since Jan 1 1904. Here is one approach (may
contain errors but will point you in the right direction),
%% Read in date information
[ fid, msg ] = fopen(FileName, 'r') ;
NColumns = 60 ; % Number of data columns - probably different for your
[a, count] = fread(fid, [ NColumns Inf], '*single') ; % Force ...Hi need help in reading file in matlab
Hi I have a text file . I need to read it to matlab without the headerlines. Is there anyway other than text read. My file is with .s6p file. It consists of 6-port s-parameters.
Can anyone help with this.
<Summary: The OP has a text file he/she wants to read in, omitting the
headerlines. The OP doesn't want to or can't use textread.>
I guess my first question is, why do you not want to use textread? (And
I don't know about other people, but I have no clue what the file format
of a .s6p file is. I don't even know if it's binary or ASCII da...Reading Labview binary file using Matlab
I need to know how I can read a Labview log file(binary
format) using matlab.
I tried using fread using the 'ieee-be' option. But so far
I have been unsuccessful in reading it correctly. I can
read but I am reading a set of bizzare numbers. And I know
the log file has both multi channeled time series data
(with a timestamp) and some acquisition related
Is your data stored in their TDMS data format?
I appreciate your time to help me with my problem. I dont
know what is TDMS format. Is there any easy way I can find
Th...problem with matlab compile error in matlab6.5 work in matlab 7, help!
hi to all,
i have a problem running this code on Matlab 6.5, it running fine on matlab Version 184.108.40.206 (R14) Service Pack 3 (but i have not this version)
Matlab 6.5 give me a compilation error:
?? Error: File: C:\Documents and Settings\Roby\Documenti\Tesi\portoni_sd_sa\portoni_sd_sa\portoni_2d.m Line: 23 Column: 19
"identifier" expected, "(" found.
row 23 col 19 start from @(points) ...
(at line begining with error_function = )
Can u help me to resolve this error? can u give me sugestion how can write this line
i'm a beginner and i can't understand why t...