simulink에서 matlab function 블록에서 작업공간에 이미 선언된 변수를 인식하지 못합니다.
Show older comments
simulink simscape fluid를 이용하고있습니다.
MATLAB Function을 이용하고있는데, 함수를 만들 때 이미 작업공간에 존재하는 변수를 인식하지 못해서 변수를 못넣고 직접적인 값을 넣어 계산하게 됩니다.
다시 말하면, variableA.m 파일을 실행하여 A라는 변수를 선언하여, 작업공간에 A=3이 이미 존재하는데, simulink에서 MATLAB Function을 만들 때 A라는 변수를 인식을 못합니다.
작업공간에 선언된 변수를 MATLAB Fuction 상에서 이용하려면 어떻게 해야하나요?
Accepted Answer
More Answers (0)
Categories
Find more on Foundation and Custom Domains in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!