Example Code

Convert File to .MAT

Code and Documents

Attachment

Download All

Introduction

This example demonstrates how to convert a file consisting of numerics into a .MAT file. It is accompanied by the Knowledgebase 11SF83W0: How do I Transfer Data Between The MathWorks, Inc. MATLAB® Software Development Environment and LabVIEW?

The top level VI is SaveAsMatFile.vi.


Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
sparakala12
Member
Member
on

Hi Wills,

 

Thanks for the structure for code you have shared for generating the .mat file.

I tried working on it and tried to generate a .mat file with multiple sets of data. 

but it seems the structure works for on set of array data, but when i tried to set the second set of data to the same .mat file in the continuation of the code.

can you help me out how to set the structure for .mat file so that we can send the 3 sets of 2D array in to one .MAT file, it would be a great help.

I tried setting multiple sets of arrays with different array names. but it seems Matlab is not able to read the multiple sets and says the file corrupted. 

I am certain that I am doing some thing wrong with the structure. 

Can you please help me out with this, and it would be a great help for my work. 

You can also reach me at sparakala12@gmail.com directly.

 

Thanks and Regards,

Shravan Kumar Parakala.

Contributors