Hello everyone,I have a .m file that has to be used in labview through File io.Can someone help me in saying how to convert .m file to bin file.Thanks in advance!

Answers (1)

Jan
Jan on 23 Apr 2021
Edited: Jan on 23 Apr 2021

0 votes

There is no definition of bin-files. You can read any file in binary mode and M-files are simply text files. Therefore it is not clear, what you want to convert and what you need in labview.
Do you mean a .mat-file?

2 Comments

I have data in matlab file that has to be manipulated in labview.So iam thinking of using file io to import matlab file.Can u provide some example code to do the same?
Jan
Jan on 23 Apr 2021
M-files contain code. Storing data in M-files would be a very strange method.
It is your turn to explain, how the data are stored in which kind of file. There is no general method to convert "data stored in a file" into a bin file.

Sign in to comment.

Commented:

Jan
on 23 Apr 2021

Community Treasure Hunt

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

Start Hunting!