The provided solution is coming up as incorrect.

조회 수: 24 (최근 30일)
Owen
Owen 2022년 8월 26일
댓글: ARJUN RAM 2025년 8월 8일
I am currently doing the MATLAB onramp course and I am on task 6 of the final project Stellar moon 2 and I cant figure out the answer. When I select the solution I copied it and put it as my answer however it comes up as incorrect. This is beyond frusterating as I am unable to progress and I have tried deleting everything and trying again several times and I just want to finish this course. Can someone please help.
  댓글 수: 5
Shraddha
Shraddha 2025년 8월 7일
have you found the solution. I am stuck in that task
ARJUN RAM
ARJUN RAM 2025년 8월 8일
thanks its work those who get same bug please clear the cache in browser ,even though the error exists change the browser,then same copy paste you will get correct code then now on

댓글을 달려면 로그인하십시오.

답변 (1개)

Swaroopa
Swaroopa 2022년 8월 28일
Hi Owen,
You have to create the same variable name "movaway" and please check whether you have given correct variable name.
In the task,starnames is a 7*1 string and speed is the corresponding speed for the stars which is an integer array.
From the question ,we should give output elements in starnames whose speed is greater than zero and should store the output in movaway variable.
So we can write code in the following way
movaway=starnames(speed>0)
Hope it helps.
  댓글 수: 2
Owen
Owen 2022년 8월 28일
thanks however I am aware that is the answer. However when I write EXACTLY that, the computer says im wrong even after ressetting the test and trying multiple times.
Richard Austin-Berry
Richard Austin-Berry 2022년 12월 14일
편집: Richard Austin-Berry 2022년 12월 14일
I think it's maybe because 'legend' existed in the code both as a matrix and a function. I had to close the tutorial and reopen it, then interrogate what's in the code and legend only existed as a function. Then it worked fine.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by