Why disp(label) command is not working with run initialization 'on'

4 次查看(过去 30 天)
couldn't submit one task (task 5 of 'masking subsystems' from 'Subsystems') in Simulink Fundamentals), as per my knowledge, am trying to present the correct answer, where the answer given in the solution category is the same as mine. am really stuck here. its not accepting my submitioon, please help

采纳的回答

Rahin Vadsariya
Rahin Vadsariya 2022-6-28
Hello,
This issue is a bug in MATLAB R2022a and is fixed in R2022a Update2. Please upgrade your MATLAB to latest update to alleviate the issue. You may follow the below mentioned workaround for previous release.
The cause for the issue is that currently, the assessment expects the answer to be "disp(label)", that is without the semicolon. Whereas, by following the instructions, you end up submitting "disp(label);"(which includes a semicolon).
The temporary workaround is manually deleting the semicolon after "disp(label)" before submission. Additionally, make sure that there are no blank lines after the "disp(label)" command. There should be only one line in the submission.
Follow the same guidelines for successfully submitting Task 6.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by