About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

scripts default iconread_float.m (Scripts) Publisher's description

This function reads in numbers from a text file and stores them to a cell array

This function reads in numbers from a text file and stores them to a cell array. It solves the problem that often the numbers in the text file are written by programs (e.g. MS Excel) using the Windows regional settings for the format of a number, e.g. 100,000.123 (english) or 100.000,123 (german). Matlab does not use windows locale settings. read_float uses either the Windows locale settings or user specified characters for the digit group and decimal separators. The numbers are detected using a regular expression which matches any floating point number (even complex numbers, see documentation of str2double.m)
The regular expression is described in a comment in the m-file and could be useful and easily adapted for similar purposes.
Using this function, there is no need to pre-process the text file, e.g. by substituting all commas by dots in a file using a comma as decimal separator.

System Requirements:

MATLAB 7.0.4 (R14SP2)
Program Release Status: New Release
Program Install Support: Install and Uninstall

read_float.m (Scripts) Tags:

Click on a tag to find related softwares

Is read_float.m (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.