Grader says answer Verified in Reference Solution is wrong when submitted by a Learner
古いコメントを表示
The Grader is saying an answer that is Verified by the Reference Solution is wrong when submitted in a Learner Code.
Reference Solution:
eqns = [Mass_bullet*V_i == (Mass_bullet + Mass_block)*v, (Mass_bullet + Mass_block)*g*d*mu == 0.5*(Mass_bullet + Mass_block)*v^2];
Solving for v and d.
Only way to get Grader to say the Learner's value for d is correct is to move mu to front of second expression:
eqns = [Mass_bullet*V_i == (Mass_bullet + Mass_block)*v, mu*(Mass_bullet + Mass_block)*g*d == 0.5*(Mass_bullet + Mass_block)*v^2];
If the Learner enters the code as in the Reference Solution, it produces exactly the same value for d (to all shown sig figs), but Grader says it's incorrect.
How can I get Grader to confirm the correct d from the Learner without having the Learner type that line of code in a specific order?
1 件のコメント
Cris LaPierre
2020 年 3 月 23 日
編集済み: Cris LaPierre
2020 年 3 月 23 日
Can you share your complete reference solution? Or at least something similar if you don't want students to come across the solution here.
採用された回答
その他の回答 (1 件)
William Stuckey
2020 年 3 月 23 日
4 件のコメント
William Stuckey
2020 年 3 月 23 日
Cris LaPierre
2020 年 3 月 23 日
Which variables are you assessing? Are you using a MATLAB code assessment or just the default variable comparison?
William Stuckey
2020 年 3 月 23 日
William Stuckey
2020 年 3 月 23 日
コミュニティ
その他の回答 遠隔学習コミュニティ
カテゴリ
ヘルプ センター および File Exchange で Use Content in an LMS Course についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!