Matlab Fundamentals course: Task 1 from paragraph 15.1 (Creating and Calling Functions) gives me an error

18 views (last 30 days)
Hello,
I just finished the Matlab Fundamentals course, but, unfortunately, I didn't manage to complete the exercises from paragraph 15.1. Even if I copy and paste the suggested solution and submit the job, I get an error in Task 1 (please see the attached image), so that I cannot go ahead to task 2. This problem causes the current percentage of course completion to be stuck at 99%.
Could you please help me understanding where is the problem?
Thank you so much,
Sara

Accepted Answer

Cris LaPierre
Cris LaPierre on 14 Mar 2022
It looks like there is an issue with this test. You can fix it by adding a clear in the very first line of the script.
clear % <=== Add clear to first line
load medalcounts bronzes silvers golds medals
histogram(medals)
xlabel("Medal count")
ylabel("Number of teams")
Task 1
pp = paretoperc(medals)
  11 Comments
Cris LaPierre
Cris LaPierre on 13 Dec 2023
Edited: Cris LaPierre on 13 Dec 2023
Knowing nothing more than what test you are getting wrong, my suspicion is that you are not assiging the output of your function call to a variable named pp.
Use the 'See Solution' link to check what is differing in your answer.

Sign in to comment.

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!