MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Guia de Instalação Página 37

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 36
Creating MATLAB Web Server M-Files
2-9
% Create magic square in output structure OUTSTRUCT.
outstruct.msquare = magic(msize);
% Get column, row, and diagonal sum. Put in OUTSTRUCT.
d = sum(outstruct.msquare,1);
outstruct.msum = d(1,1);
% Output the results and optionally write as a file if the
% filename was given as the second argument to WEBMAGIC.
(Step 6)
templatefile = which('webmagic2.html');
if (nargin == 1)
retstr = htmlrep(outstruct, templatefile);
elseif (nargin == 2)
retstr = htmlrep(outstruct, templatefile, outfile);
end
Vista de página 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 85 86

Comentários a estes Manuais

Sem comentários