The third week
In this Friday lab session, we finished the coding of zoom in/out and save file function along with function of displaying x, y data in the table box. After calibration and grabbing points, the data will be displayed on the table next to it and a curve plotted with those data will be displayed in the preview box, which is shown in the picture below. in Figure 1, 2.
Fig.1 Results of 'Grab Points'
Fig.2 Results displayed in Preview box
Fig.3 Results displayed in Data table
Also, user can press 'Save as excel file' and the program will ask user to input the file name. The file will be saved in the same file as the .m file. The results are shown below in Figure 4,5,6.
Fig.4 Results displayed in Excel file
Fig.4 Ask user to input file name
Fig.4 Excel file to save data
Next week, we will try to deal with the problems of illegal input when asking user to input values or name of the file. Moreover, we will do some research on how to convert it into a form which can be used by user who does not have MATLAB.






没有评论:
发表评论