
Edit Code Initialization under Mask editor
12 ビュー (過去 30 日間)
古いコメントを表示
I am creating the mask for my simulink block and I need to add the Initiallization code to it. Unfortumatelly I can't edit (add) code within the mask editor; it's grayed and not editable, disabled.

How can I access this, and add the initialization code to it?
Thank you.
0 件のコメント
採用された回答
Meet
2025 年 1 月 8 日
編集済み: Meet
2025 年 1 月 8 日
Hi Jack,
I faced a similar problem and found that there are two ways to save callbacks: either within the mask or in a separate callback file. It is possible that your Mask Editor is set to "Callback file" under "Switch Callback Mode." If you change this setting to "Mask," you should be able to edit the initialization code directly in the editor. I have attached an image to guide you through this process.

I hope this helps resolve the issue!
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Create Block Masks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

