필터 지우기
필터 지우기

how can I connect 2 matlab fcn blocks to each other

조회 수: 1 (최근 30일)
sia
sia 2013년 7월 13일
Hi,
i wanna use in my simulink modell 2 matlab fcn blocks and the 2th block should be run if an action (if) happened.
how can i do that???

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 7월 13일
편집: Azzi Abdelmalek 2013년 7월 13일
  댓글 수: 2
sia
sia 2013년 7월 13일
thank for the answer. But i changed my function and now i have only one matlab fcn block with 2 functions. But the problem ist that i wanna call the 2th function when the condition is satisfied, and i get this Error: Output argument 'milling' is not assigned on some execution paths.
I post the important part of my code:
function [Tool_move, milling]= move(RD, TD, dichte, cuttingDeepth,toolRadius )
....
if(welt (X_current, Y_current, Z_current) == welt(x,y,z))
milling = fcn(cuttingDeepth, toolRadius, dichte);
end
....
Tool_move = welt;
function milling = fcn(cuttingDeepth, toolRadius, dichte)
...
milling = knochen;
can u guys help me pls.
THX
Kaustubha Govind
Kaustubha Govind 2013년 7월 15일
In the function move, you need to assign a value for milling even when the "if" condition is not satisfied.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by