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 to file using ASP     -  
 Read and write CSV file     -  
 File read by char     -  
 javascript read file     -  
 File write read     -  
 Read Binary File in C++     -  
 Read XML file content using SAX and writing its as SQL     -  

Topic Tags

Matlab Basics