필터 지우기
필터 지우기

Calling a Function Within A Mask

조회 수: 2 (최근 30일)
katherine keogh
katherine keogh 2021년 5월 21일
답변: Pramil 2024년 4월 29일
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
Jan
Jan 2021년 5월 21일
Your question is not clear yet. Please edit it and insert more details. What does "system below the mask" mean?

댓글을 달려면 로그인하십시오.

답변 (1개)

Pramil
Pramil 2024년 4월 29일
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.

카테고리

Help CenterFile Exchange에서 Create Block Masks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by