Gistlib Logo

gistlib

write a function that reads in a text file in matlab

main.m
function content = readTextFile(filename)
    fileID = fopen(filename, 'r');
    content = fscanf(fileID, '%c');
    fclose(fileID);
end
137 chars
6 lines

similar matlab code snippets

how to open an application file in matlab after checking that the application is not already currently running in matlab
check if matfile exists in matlab
. transfer this image to matlab environment and examine its numerical values and file sizes in matlab
how do i use fprintf in matlab
code to select one image each from multiple directory in matlab
opening .raw file from directory in matlab
how to perform a ztest in matlab
how to calculate the normal distribution in matlab
how to calculate the 99th percentile in matlab
how to calculate the binomial distribution in matlab

related categories

matlab
file-handling

gistlibby LogSnag