I have to run some Matlab scripts on Raspberry Pi. As per my understanding, Matlab is quite heavy and cannot be installed on Raspberry Pi. Are there any other safe alternatives? My Matlab code does not require Simulink and it involves simple matrices operations. I would really appreciate your help.
You could try installing GNU Octave. It's more-or-less compatible with Matlab, so you can run those scripts without rewriting them.
Alternatively, you could rewrite your code in Python, using numpy library for your matrices.