I have a 2D image and I have made some plots including surface plot of that image in MATLAB. Now I want to deploy this code in server and see those plots on android. Please instruct me how can I do that?

1 view (last 30 days)
A=imread(Image Directory Here);
B = rgb2gray( A );
figure
surfc(B,'edgecolor','none')
grid on
rotate3d on
figure
surfc(B,'edgecolor','none')
view (0,90)
figure
surfc(B,'edgecolor','none')
view (-90,0)
figure
surfc(B,'edgecolor','none')
view (0,0)
figure
grid on
imcontour(B,3)
rotate3d on
colormap
hold
  3 Comments
Masud Kaiser
Masud Kaiser on 14 Nov 2018
I want to make an app which will only take the picture and send it to the server. From there the matlab will accept the image and process it by the program I have attached and will send the graphs to the android app where I can see it.
But please mention also the procedure of doing it using matlab mobile as you stated in your first point
Walter Roberson
Walter Roberson on 14 Nov 2018
Unfortunately matlab mobile does not have the ability to take pictures and transfer them to the server . You can use Simulink to create an app to deploy to android that can use the camera and use tcp to send to a server for processing . The server would have to create an image array as output and send that to the android . User interaction is limited for this purpose .
At this time it is not supported to target matlab code directly to android , only Simulink. MATLAB Coder can be used with the android as aa generic target but input output capacity is very limited and you would need aa lot of coder.ceval() to do the real interaction .

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!