Calling a Function Within A Mask

7 Ansichten (letzte 30 Tage)
katherine keogh
katherine keogh am 21 Mai 2021
Beantwortet: Pramil am 29 Apr. 2024
I have some varibles that need to run through a function I made then can be inserted in the system below the mask. how can I do this?
  1 Kommentar
Jan
Jan am 21 Mai 2021
Your question is not clear yet. Please edit it and insert more details. What does "system below the mask" mean?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Pramil
Pramil am 29 Apr. 2024
Hi katherine,
As per my understanding you want to pass your “mask variable(s)” through some function before passing them to a subsystem, for this you can use the “MATLAB Function” block.
Inside of your “mask” block, define a “Constant” block with same parameter as your “mask” parameter, now pass the output of this block to a “MATLAB Function” block, where you can define the function this variable must pass through and then pass the output of this to your desired subsystem.
You can learn more about the “MATLAB Function” block from the following link:
Hope it helps.

Kategorien

Mehr zu Author Block Masks finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by