How can I solve a Heaviside function in MATLAB R2017b ?

조회 수: 3 (최근 30일)
mohammed lubbad
mohammed lubbad 2018년 10월 7일
댓글: Walter Roberson 2018년 10월 11일
i found a problem in heaviside(t-10) but when be in heaviside(10) it solve it !!
[ysm,xsm]=lsim(Asm,Gsm,H,zeros(k,r),5*u*heaviside(t-10),t,x0);
[yopt,xopt]=lsim(A-B*Kopt,G,H,zeros(k,r),5*u*heaviside(t-10),t,x0);
but I always get an error sound like
error using * Inner matrix dimensions must agree. I was trying to rewrite an expression like this:

채택된 답변

Walter Roberson
Walter Roberson 2018년 10월 7일
5.*u.*heaviside(t-10)
  댓글 수: 3
mohammed lubbad
mohammed lubbad 2018년 10월 8일
walter
do you have coder about sliding mode
Walter Roberson
Walter Roberson 2018년 10월 11일
I do not have any code about sliding mode, sorry.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by