Hi Jipeng,
As per my understanding you want to run MATLAB in cloud and access it from your local desktop.
You don’t have to manually install MATLAB in the server instead you can use a prebuilt machine image to deploy a MATLAB reference architecture. Note: You will need a MATLAB license to use MATLAB in the server.
You can refer the following MATLAB documentation for more details:-
For MATLAB machine images :- Github repo matlab-on-aws