MATLAB - File I/O
If
What will be the content of
people.txt contains:Sarah 28 Tom 35 Linda 40
What will be the content of
ages after running:fid = fopen('people.txt', 'r');
C = textscan(fid, '%s %d');
fclose(fid);
names = C{1};
ages = C{2};