MATLAB Answers

Does MATLAB GUI can work standalone when installed to Raspberry Pi using matlab code (.m file)?

12 views (last 30 days)
JANAK TRIVEDI
JANAK TRIVEDI on 13 Aug 2019
Commented: JANAK TRIVEDI on 16 Aug 2019
I did an image processing program using Matlab Guide and is it possible to run the GUI on the raspberry pi using matlab code (.m file)? Thank you very much.

  0 Comments

Sign in to comment.

Answers (2)

Walter Roberson
Walter Roberson on 14 Aug 2019
There are no versions of MATLAB that can run on ARM CPU.
Executables created with MATLAB Compiler and MATLAB Compiler SDK can only run on chips that MATLAB itself can run on. Therefore you cannot use them to create programs that run on ARM CPU.
You should not expect that Mathworks will create a version for Raspberry or Arduino at least until Raspberry starts making devices with 64 bit CPU and at least 4 gigabytes of ram, and significantly faster than the current devices.
Your two possibilities at the moment:
  1. create a Simulink model and deploy it to Raspberry. Those models can run stand-alone. However the graphics is very basic and many things are not implemented.
  2. using a quite recent version of MATLAB, you can use MATLAB Coder to generate code targeted to Raspberry. If you build a complete program then it can run stand-alone on Raspberry. However the graphics is very basic and many things are not implemented.
The graphics involved with GUIDE is not supported on Raspberry.

  1 Comment

JANAK TRIVEDI
JANAK TRIVEDI on 16 Aug 2019
Thank you Sir,
I will tried and search otherwise your answer is final outcome for me.
Thank you once again.

Sign in to comment.


Andrey Kiselnikov
Andrey Kiselnikov on 13 Aug 2019
Edited: Andrey Kiselnikov on 14 Aug 2019
It isn't possible to install MATLAB on Raspberry PI to run *.m files (only this way will allow you to run *.m files on Raspberry, but I didn't test it), but there is a better way to deploy image processing algorithms on this platform. I tried it by myself and was glad.
About MATLAB compiler well answered here:
p.s. This is a demonstration of the example, but it was made for Russian speaking auditory, anyway, you can watch the process in real.

  2 Comments

Andrey Kiselnikov
Andrey Kiselnikov on 14 Aug 2019
NO.
"No. The ARMv6 will never be supported by MATLAB Compiler Runtime. I cannot predict as yet whether the ARMv7 will ever be supported; perhaps by R2019b, but it would not surprise me if the ARMv8 is the lowest ARM version that will ever be supported."
The full answer is here:
p.s. if my help was usefull please mark answer as accepted.

Sign in to comment.

Sign in to answer this question.


Translated by