MATLAB: Plotting x[n] with various points from a file

dftplottingsignal processing

So I have an assignment that requires to do this. I have only started on point number 1.
I also have a txt file named: 'signal.txt' that has a whole bunch of points like so:
5.25295.25305.25315.25345.25395.25445.25505.25585.25675.25775.25885.26015.26155.26305.26465.26635.2682etc.....
1. The input signal ?[?] is contained in a text file: signal.txt. The data format is ā%1.4f\nā and there are 1028 samples. Write the code to read these 1028 values into a floating-point array. Plot the signal ?[?].
2. Write code to calculate the 1028-point DFT of the signal of ?[?]: ?1(?)=Ī£?[?]??2?????ā1?=0
3. Plot the magnitude and phase of ?1(?).
Below is my code, but what I am having trouble with is plotting x[n] (on point number 1 with the various points). I do not know how to really plot x[n]. I am confused on how long the horizontal axis is going to be and the compiler keeps throwing an error since the arguments inside stem() have to be the same size. Thank you and any help is appreciated.
% Jorge Avila - 1001543128clcclearclose all% This project will require you to implement the DFT computation for a % given signal in a MATLAB script and compare your output to the output of % the MATLAB fft() function.% formatSpec = '%1.4f\n';formatSpec = '%f';fp = fopen('signal.txt','r');numberArray = fscanf(fp,formatSpec);arraySize = size(numberArray);% plot x[n]subplot(2,2,1);% maybe do a for loop????????stem(1028, numberArray);% really do not care what the x & y labels are.xlabel('n and k values');ylabel('x[n] and X[k]');title('Plot of number generated');% close the file pointerfclose(fp);

stem(1:arraySize, numberArray);