Stellar motion part 2, task 5

25 visualizaciones (últimos 30 días)
Lorena
Lorena el 1 de Jun. de 2023
Comentada: Ivan el 21 de Dic. de 2024 a las 4:38
I'm doing the 5th task of Stellar motion part 2 and I keep getting it marked as wrong.
The solution to the task is
legend(starnames)
and even though I've tried a million ways of reentering it (restarting the task, writing it manually, copying and pasting the solution code), I keep getting a message telling me that "'legend' appears to be both a function and a variable". I can't keep going with the intro if this isn't accepted. Help :(
  2 comentarios
IOANNIS
IOANNIS el 29 de Sept. de 2024
Movida: Cris LaPierre el 29 de Sept. de 2024
Still not working please help me
Cris LaPierre
Cris LaPierre el 29 de Sept. de 2024
It is working. please share more details so we can help.

Iniciar sesión para comentar.

Respuestas (1)

Cris LaPierre
Cris LaPierre el 1 de Jun. de 2023
Editada: Cris LaPierre el 1 de Jun. de 2023
It appears at some point you created a variable named legend, which has overwritten the legend function.
Try adding clear legend before you use legend(starnames)
  3 comentarios
Petra
Petra el 9 de Abr. de 2024
Same, thanks Chris
Ivan
Ivan el 21 de Dic. de 2024 a las 4:38
Same here. Thanks for the clarification!

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by