Plotting using the Bar Function
3 views (last 30 days)
Image Analyst on 27 Aug 2022
Your code seemed to work for me. What error did it give you? Reply after you read this:
x = linspace(0, 10, 100);
y1 = exp((1/2) .* x) .* sin(2 * x);
Cris LaPierre on 28 Aug 2022
Edited: Cris LaPierre on 28 Aug 2022
The error you are getting from Grader is that the values of y1 are incorrect (if you were using the wrong variable name, the error would istead tell you the solution was expected to have a variable named 'y1'). This was determined by comparing the values of your variable with those generated by the instructor's solution (with some tolerance applied). So it is not that your code has an error, it is that you are not getting the expected result.
Where the error is not obvious, you may consider reaching out to your instructor if you think there is an error in the grading. You can do so by following the steps in this Answer and sending the solution id along with an explanation to your teacher.