Switch to full style
General MATLAB code examples.
Post a reply

read file in matlab

Tue Aug 02, 2011 12:21 pm

This is an example to how to read file in matlab :
Code:
fsession = fopen('file.txt');
data= textscan(fsession , '%s','delimiter',' ');
fclose(fsession ); 


Here is reading as string and delimiter is a white space .



Post a reply
  Related Posts  to : read file in matlab
 error closing file matlab save     -  
 read from file in C++     -  
 Read csv file     -  
 Read and write CSV file     -  
 javascript read file     -  
 File read by char     -  
 File write read     -  
 Read Binary File in C++     -  
 Read and Write to file using ASP     -  
 read() return when it has reached the end of a file     -  

Topic Tags

Matlab Basics