file2var

To load a data file and assign its content to a particular variable.

You are now following this Submission

To load a data file and assign its content to a particular variable.

Example: Data=file2var('test.dat')

This program perform the same things as follow:
load test.dat
Data=test;
or
load test <- Assume test.mat
Data=test;

Cite As

Alexander K. M. Leung (2026). file2var (https://www.mathworks.com/matlabcentral/fileexchange/168-file2var), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Data Import and Analysis in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0