Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Error in coding a user defined MATLAB function

7 ビュー (過去 30 日間)
Monday Ikhide
Monday Ikhide 2016 年 10 月 22 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Please I am getting error in using a "for" or "if" statement in a MATLAB user defined block.
  2 件のコメント
Chaya N
Chaya N 2016 年 10 月 22 日
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 2017 年 2 月 8 日
編集済み: James Tursa 2017 年 2 月 9 日
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

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by