Run Initialization for Task (5) Mask creation

2 ビュー (過去 30 日間)
Gyang
Gyang 2024 年 9 月 17 日
編集済み: Gyang 2024 年 9 月 18 日
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?

採用された回答

Cris LaPierre
Cris LaPierre 2024 年 9 月 17 日
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);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreate Block Masks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by