How to get pack ego actor matlab function

조회 수: 11 (최근 30일)
Ciro Arena
Ciro Arena 2023년 1월 14일
댓글: Sulaymon Eshkabilov 2023년 1월 15일
Hi everyone,
I'm using the Automated Driving Toolbox and I have a little problem. There's a matlab function called 'pack ego actor' and I would like to know hot to get such function automatically without creating it from skratch. Where Have I to search? In the photo you can see the function to which I refer.

답변 (1개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2023년 1월 14일
If you have this model shown in this screen shot, then just double click on the MATLAB fcn block and then use the syntax of that fcn by introducing necessary changes.
  댓글 수: 2
Ciro Arena
Ciro Arena 2023년 1월 15일
What you have just said is creating such function from skratch. This screen shot is taken by google. Unfortunately I have not this function, that's why I have just wanted to know where to find it in Simulink.
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2023년 1월 15일
Note that writing a MATLAB fcn is not that much difficult if you have formulations at your hand, e.g.:
% To compute
function y = ABC_FUN(u1, u2, u3)
y = sin(u1*u2)+cos(u1*u3);
end
See the attached simple Simulink Model with this MATLAB fcn called ABC_FUN.

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by