Calculating motor rpm with MATLAB GUI

Please read and follow this link: How to get the best out of this forum - Using Arduino / Project Guidance - Arduino Forum

Helpers will not design Your entire project.
Start learning Arduinos and programming using the suitable simple example codes within the IDE.