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

  • 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 316
int CompareTo(const mwArray& arr) const
Purpose Compare two arrays for order
C++
Syntax
#include "mclcppclass. h"
mwArray a(1, 1, mxDOUBLE_CLASS);
mwArray b(1, 1, mxDOUBLE_CLASS);
a = 1.0;
b = 1.0;
int n = a.CompareTo(b); // Should return 0
Arguments arr
Array to compare to this array
Return
Value
Returns a negative integer, zero, or a positive integer if this array is less
than, e qual to, or greater than the specified array.
Description Compares this array with the specified a rray for order. This method
makes a byte-wise comparison of the underlying arrays. Therefore,
arrays of the same type should be compared. Arrays of different types
will, in general, not be ordered equivalently, eve n if they are initialized
withthesamedata.
C-63
Vue de la page 316
1 2 ... 312 313 314 315 316 317 318 319 320 321 322 ... 353 354

Commentaires sur ces manuels

Pas de commentaire