write a program that reads in the first column of a selected data file and plots data in matlab
main.m
% Open the data filefileID = fopen('data.txt', 'r');
% Read the first column of the data filedata = textscan(fileID, '%f');
% Close the filefclose(fileID);
% Plot the dataplot(data{1});
xlabel('Index');
ylabel('Data');
title('Plot of Data from First Column');