How can I solve a Heaviside function in MATLAB R2017b ?

3 visualizaciones (últimos 30 días)
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:

Respuesta aceptada

Walter Roberson
Walter Roberson el 7 de Oct. de 2018
5.*u.*heaviside(t-10)
  3 comentarios
mohammed lubbad
mohammed lubbad el 8 de Oct. de 2018
walter
do you have coder about sliding mode
Walter Roberson
Walter Roberson el 11 de Oct. de 2018
I do not have any code about sliding mode, sorry.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB Coder en Help Center y File Exchange.

Productos


Versión

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by