Write MATLAB m-file that performs the following: 

1. Read the data points from lab4_plot_data.txt 2. Plot y against x using red circle markers. 3. On the same figure, plot the function sin(x) as a black continuous line. Remember to include a legend and place it in the bottom left corner. 

Do not forget to label your plots. Use either the fgetl() or the importdata() functions to import your data. 

  • Attachment 1
  • Attachment 2

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now