Clear Filters
Clear Filters

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

4 views (last 30 days)
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

Accepted Answer

Rahin Vadsariya
Rahin Vadsariya on 28 Jun 2022
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.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!