call with matlabfunction(simulink) an other mfile
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
Hi, i have a simulink model, which computes a value, then i give this value to a matlab funktion, then fron this matlab funktion i wanna call an other mfile funktion and give this mfile function this value.
How can i call an other funktion and give a value???? THX
댓글 수: 0
답변 (1개)
Azzi Abdelmalek
2013년 6월 3일
0 개 추천
댓글 수: 9
sia
2013년 6월 3일
Azzi Abdelmalek
2013년 6월 3일
편집: Azzi Abdelmalek
2013년 6월 3일
function y = load_handles(i,d,c,alpha)
%#codegen
y = test_environment(i,d,c,alpha);
sia
2013년 6월 3일
Azzi Abdelmalek
2013년 6월 3일
And what are i,d,c,alpha ? constants or signals?
Azzi Abdelmalek
2013년 6월 3일
sia
2013년 6월 3일
Azzi Abdelmalek
2013년 6월 3일
편집: Azzi Abdelmalek
2013년 6월 3일
You did not answer my question, what are i,d ,c and alpha constants or signals? how are they used in your simulink model?
sia
2013년 6월 3일
Azzi Abdelmalek
2013년 6월 3일
You do not need to put the m-file in your Matlab fcn block, you have just to call the function in the block Matlab fcn. but you need to use i,d,c,alpha as constants or signals
function y = load_handles(i,d,c,alpha)
%#codegen
y = test_environment(i,d,c,alpha)
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!