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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 408
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 110
3
Creating Fortran
MEX-Files
Fortran MEX-Files . . . . . . . . . . . . . . . . . 3-3
The Components of a Fortran MEX-File . . . . . . . . . 3-3
The %val Construct . . . . . . . . . . . . . . . . . . 3-8
Examples of Fortran MEX-Files . . . . . . . . . . . 3-9
A First Example — Passing a Scalar . . . . . . . . . . . 3-10
Passing Strings . . . . . . . . . . . . . . . . . . . 3-12
Passing Arrays of Strings . . . . . . . . . . . . . . . 3-14
Passing Matrices . . . . . . . . . . . . . . . . . . . 3-17
Passing Two or More Inputs or Outputs . . . . . . . . . 3-19
Handling Complex Data . . . . . . . . . . . . . . . . 3-22
Dynamically Allocating Memory . . . . . . . . . . . . 3-25
Handling Sparse Matrices . . . . . . . . . . . . . . . 3-28
Calling Functions from Fortran MEX-Files . . . . . . . . 3-32
Advanced Topics . . . . . . . . . . . . . . . . . . 3-36
Help Files . . . . . . . . . . . . . . . . . . . . . 3-36
Linking Multiple Files . . . . . . . . . . . . . . . . 3-36
Workspace for MEX-File Functions . . . . . . . . . . . 3-36
Memory Management . . . . . . . . . . . . . . . . . 3-37
Debugging Fortran Language MEX-Files . . . . . . . 3-38
Debugging on UNIX . . . . . . . . . . . . . . . . . 3-38
Debugging on Windows . . . . . . . . . . . . . . . . 3-39
Przeglądanie stron 110
1 2 ... 106 107 108 109 110 111 112 113 114 115 116 ... 407 408

Komentarze do niniejszej Instrukcji

Brak uwag