MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Guide de l'utilisateur Page 337

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 354
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 336
void SetCharData(mxChar* buffer, mwSize len)
Purpose Copy data from supplied mxChar buffer into array
C++
Syntax
#include "mclcppclass. h"
mxChar data[6] = {'H', 'e' , 'l' , 'l' , 'o' , '\0'};
mxChar data_copy[6] ;
mwArray a(1, 6, mxCHAR_CLASS);
a.SetData(data, 6);
a.GetData(data_copy, 6);
Arguments buffer
Buffer containing data to copy
len
Maximum length of buffer. A maximum of len elements will be
copied.
Return
Value
None
Description The data is copied in column-major order. If the underlying array is not
of type
mxCHAR_CLASS,thedataisconvertedtothistypeasitiscopied.
If a conversion cannot be made, an
mwException is thrown.
C-83
Vue de la page 336
1 2 ... 332 333 334 335 336 337 338 339 340 341 342 ... 353 354

Commentaires sur ces manuels

Pas de commentaire