필터 지우기
필터 지우기

Calculation of Integral square error from Simulink

조회 수: 6 (최근 30일)
Rakesh Jain
Rakesh Jain 2017년 8월 30일
편집: Rakesh Jain 2017년 8월 30일
I have a control system model in simulink. Using "to workspace" block, I have taken the output y and time t from the clock to Matlab workspace. I wish to find error in a similar way as given below. The problem is that t is not having equal intervals. deltat is not constant from the clock data. If deltat is constant, then I can find integral square error. What should I do?
err = 1-y;
deltat = 0.1;
ise = trapz(deltat,err.^2);

답변 (0개)

카테고리

Help CenterFile Exchange에서 Clocks and Timers에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by