MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Guide d'installation Page 37

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 86
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 85 86

Commentaires sur ces manuels

Pas de commentaire