i have faced an issue while completing signal processing onramp course on matlab?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
vamsi
el 15 de Sept. de 2023
Comentada: Renee Coetsee
el 19 de Sept. de 2023
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.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1483126/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1483126/image.png)
5 comentarios
Andrew
el 15 de Sept. de 2023
Prithwiraj
el 15 de Sept. de 2023
yes, I am also in similar condition, this issue still hasn't been resolved yet
Respuesta aceptada
Renee Coetsee
el 15 de Sept. de 2023
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.
3 comentarios
Renee Coetsee
el 19 de Sept. de 2023
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!
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!