Gistlib Logo

gistlib

write me a for loop to loop for a whole file in matlab

main.m
fileID = fopen('filename.txt', 'r');
while ~feof(fileID)
    line = fgetl(fileID);
    disp(line);
end
fclose(fileID);
119 chars
7 lines

similar matlab code snippets

import .wav file in matlab
count to 100 in matlab
infinite loop that terminates with keyboard press in matlab
paralell loop in matlab
create a loop in matlab
for loop in matlab
sum squares of numbers from 5 to 70 in matlab
infinite loop that terminates on keyboard press in matlab
loop with ten iterations in matlab
how to calculate the moving product of a vector in matlab

related categories

matlab
loop
file

gistlibby LogSnag