how can i display an image from a matlab m-file code on an html page.Please i need the code syntaxe.

조회 수: 4 (최근 30일)
I am tryinng to deploy a complex matlab gui created using guide on a web page through matlab webserver and the code syntaxe i used displays numerical values instead of a figure.the code syntaxe i used is shown below:
% Write the figure file
%Render jpeg and write to file
PlotFile = sprintf('result%s.jpeg', InputSet.mlid);
drawnow;
wsprintjpeg(Fig, PlotFile);
close(Fig);
templatefile = which('deepwimax2.html');
if ( exist('OutFile','var') == 1 )
% write Page to a diagnostic file
s.GraphFileName = [ PlotFile];
PageString = htmlrep(s, templatefile, OutFile);
else
s.GraphFileName = ['/icons/' PlotFile];
PageString = htmlrep(s, templatefile);
end
where 'result' represents the last line of my m-file code to plot the figure as shown below:
%plot the grapgh
result=berplot(SNR,bit_error_rate,rate_id)
why is that when i load the page url in my browser, the figure resulting from result doesn't display.Can someone please tell me where i have gone wrong or is there a line code which i haven't well interpreted or whatever?
THANKS FOR ANY ANSWERS IN ADVANCE

답변 (0개)

카테고리

Help CenterFile Exchange에서 Desktop에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by