Even though i have given input as t for x in local extrema signal measurements it still shows error as x input is incorrect.
조회 수: 2 (최근 30일)
이전 댓글 표시
댓글 수: 2
Dyuman Joshi
2023년 9월 15일
Copying this comment - https://in.mathworks.com/matlabcentral/answers/2021321-issue-with-signal-processing-onramp-course-code-submission#comment_2886886
Seems multiple people are having this same problem today.
Contact The MathWorks for support. We can not help you with this.
답변 (1개)
Renee Coetsee
2023년 9월 15일
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
- Click See Solution (left of the Submit button)
- Copy the entire solution from the solution script into the working script
- 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.
댓글 수: 2
Image Analyst
2023년 9월 15일
If this Answer solves your original question, then could you please click the "Accept this answer" link to award the answerer with "reputation points" for their efforts in helping you? They'd appreciate it. Thanks in advance. 🙂 Note: you can only accept one answer (so pick the best one) but you can click the "Vote" icon for as many Answers as you want. Voting for an answer will also award reputation points.
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!