Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Error in coding a user defined MATLAB function

1 visualizzazione (ultimi 30 giorni)
Monday Ikhide
Monday Ikhide il 22 Ott 2016
Chiuso: MATLAB Answer Bot il 20 Ago 2021
Please I am getting error in using a "for" or "if" statement in a MATLAB user defined block.
  2 Commenti
Chaya N
Chaya N il 22 Ott 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 il 8 Feb 2017
Modificato: James Tursa il 9 Feb 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

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by