Run Initialization for Task (5) Mask creation

7 vues (au cours des 30 derniers jours)
Gyang
Gyang le 17 Sep 2024
Modifié(e) : Gyang le 18 Sep 2024
I need to ensure that the string is up to date by running the mask initialization commands I wrote in the previous task. However, I'm unable to find a way to do this or the code to run the initialization. The attached images provides additional context.
Could you please guide me through the process or help with the necessary code?

Réponse acceptée

Cris LaPierre
Cris LaPierre le 17 Sep 2024
You have added the text 'label' to the disp command. However, from the task description, we are told that label is a variable. Therefore, you need to display the variable value contained in label and not the string 'label'.
To do this, simply remove the quotes:
disp(label);

Plus de réponses (0)

Catégories

En savoir plus sur Author Block Masks dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by