i have faced an issue while completing signal processing onramp course on matlab?

I have provided correct solution to conditions those are showing wrong. Because of this i'm not able to complete my signal processing onramp course please find me a solution.

5 Comments

@MathWorks Support Team Please look into this as soon as possible. We won,t be able to recive the AICTE certificate if this dosen,t get resolved by today.
Yes @Kruthi.R is absolutly right we have a AICTE certificate which we wont get untill its 100% done . Please help @MathWorks Support Team
Kindly help @MathWorks Support Team please resolve the issue as soon as possible.
yes, I am also in similar condition, this issue still hasn't been resolved yet

Sign in to comment.

 Accepted Answer

Thank you for reporting this issue. This is a known bug and we are actively working on fixing it in the course.
In the meantime, the workaround for Task 4 to
  1. Click See Solution (left of the Submit button)
  2. Copy the entire solution from the solution script into the working script
  3. Submit Task 4
If that doesn't work, copy and paste the following code for Task 4:
% Find local maxima
maxIndices = islocalmax(pwr,"SamplePoints",t);
% Display results
figure
plot(t,pwr,"Color",[77 190 238]/255,"DisplayName","Input data")
hold on
% Plot local maxima
plot(t(maxIndices),pwr(maxIndices),"^","Color",[217 83 25]/255,...
"MarkerFaceColor",[217 83 25]/255,"DisplayName","Local maxima")
title("Number of extrema: " + nnz(maxIndices))
hold off
legend
xlabel("t")
Then in Task 5, Reset the script (left of the Submit button) and complete Task 5 normally.

3 Comments

Thank You Ms.Renee Coetsee. The reason i was afraid was cause i tried to write my own code similar to the tool, when that didnt work i copy pasted the code of the tool which also didnt work. Thanking You again.
For the people who use that code and want to know how to do the Task 5. (If Ms Coetsee's code didnt run for TASK 5, it should normally)
% Find local maxima
maxIndices = islocalmax(pwr,"MinProminence",10,"SamplePoints",t);
% Display results
figure
plot(t,pwr,"Color",[77 190 238]/255,"DisplayName","Input data")
hold on
% Plot local maxima
plot(t(maxIndices),pwr(maxIndices),"^","Color",[217 83 25]/255,...
"MarkerFaceColor",[217 83 25]/255,"DisplayName","Local maxima")
title("Number of extrema: " + nnz(maxIndices))
hold off
legend
xlabel("t")
Thanks @Renee Coetsee. u made my day with this one. I have worked a lot for this certifacte.I can't express my hapiness........
This issue should now be fixed and you should not need to use the workaround to complete the task. Please comment if you are still having issues with this task!

Sign in to comment.

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Products

Release

R2023b

Community Treasure Hunt

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

Start Hunting!