MATLAB Answers

how to design a code for arduino board?

I have written matlab code for filter.w1=[.0013 .1333];[b a]=butter(3,w1,'bandpass'); I need to integrate it to arduino board. How to achieve it?


1 Answer

Answer by Jan Simon
on 7 Feb 2013

What do you want to integrate in an Arduino board? The butter() command or filter()? The first is not trivial and I'd suggest to copy the created parameters. For teh 2nd you find M-code for FILTER in the forum and in this thread there is a link to a C-code implementation also.

Please ask more specific such that we do not waste your and our time with guessing, what you want.


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!