Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Error in coding a user defined MATLAB function

1 visualización (últimos 30 días)
Monday Ikhide
Monday Ikhide el 22 de Oct. de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Please I am getting error in using a "for" or "if" statement in a MATLAB user defined block.
  2 comentarios
Chaya N
Chaya N el 22 de Oct. de 2016
You can certainly use both. Would you mind posting your actual code here so we could see why you get such an error.
Monday Ikhide
Monday Ikhide el 8 de Feb. de 2017
Editada: James Tursa el 9 de Feb. de 2017
Here is it please. The code seems NOT to work for Matlab function block. Its meant for real time applications
for i=3:inf
voltage_Ave(i)=(voltage(i)+ voltage(i-1)+voltage(i-2))/3;
end

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by