MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Instrukcja Użytkownika Strona 145

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 408
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 144
Examples of Fortran MEX-Files
3-35
Running this example
sincall
displays the results
Note It is possible to generate an object of type mxUNKNOWN_CLASS using
mexCallMATLAB. See the example below.
The following example creates an M-file that returns two variables but only
assigns one of them a value.
function [a,b]=foo[c]
a=2*c;
MATLAB displays the following warning message.
Warning: One or more output arguments not assigned during call to
'foo'.
If you then call foo using mexCallMATLAB, the unassigned output variable will
now be of type
mxUNKNOWN_CLASS.
Przeglądanie stron 144
1 2 ... 140 141 142 143 144 145 146 147 148 149 150 ... 407 408

Komentarze do niniejszej Instrukcji

Brak uwag