Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Error in coding a user defined MATLAB function

1 vue (au cours des 30 derniers jours)
Monday Ikhide
Monday Ikhide le 22 Oct 2016
Clôturé : MATLAB Answer Bot le 20 Août 2021
Please I am getting error in using a "for" or "if" statement in a MATLAB user defined block.
  2 commentaires
Chaya N
Chaya N le 22 Oct 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 le 8 Fév 2017
Modifié(e) : James Tursa le 9 Fév 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

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by