필터 지우기
필터 지우기

Initialize MATLAB-Function

조회 수: 3 (최근 30일)
Saeed Ahmadzadeh Mahboobi
Saeed Ahmadzadeh Mahboobi 2020년 11월 19일
답변: Ameer Hamza 2020년 11월 19일
Hello
I've read in the previous questions, that initializing a MATLAB-Function in Simulink is done like:
persistent j;
if isempty(j)
j = 1;
end
And I have done so. Then I use the value j.
The problem is, as I want to run the simulink model, I get the following error:
Any ideas how to solve this problem?
Thanks.

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 11월 19일
This is not really an error. It just tells that you need to change the sampling rate of this block from continuous to discrete. Just click the "Fix" button on the first box under "Suggested actions" and the error will be fixed.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by