转换 Fortran 数组
对数组进行转换,以便按引用而不是按值来传递
使用这些函数在 MATLAB® 和 Fortran 类型之间进行转换。
Fortran 函数
实数
mxCopyReal8ToPtr | REAL*8 values from Fortran array to pointer
array |
mxCopyPtrToReal8 | REAL*8 values from pointer array to Fortran
array |
mxCopyReal4ToPtr | REAL*4 values from Fortran array to pointer
array |
mxCopyPtrToReal4 | REAL*4 values from pointer array to Fortran
array |
复数
mxCopyComplex16ToPtr | COMPLEX*16 values from Fortran array to pointer
array |
mxCopyPtrToComplex16 | COMPLEX*16 values from pointer array to Fortran
array |
mxCopyComplex8ToPtr | COMPLEX*8 values from Fortran array to pointer
array |
mxCopyPtrToComplex8 | COMPLEX*8 values from pointer array to Fortran
array |
整数
mxCopyInteger4ToPtr | INTEGER*4 values from Fortran array to pointer
array |
mxCopyPtrToInteger4 | INTEGER*4 values from pointer array to Fortran
array |
mxCopyInteger2ToPtr | INTEGER*2 values from Fortran array to pointer
array |
mxCopyPtrToInteger2 | INTEGER*2 values from pointer array to Fortran
array |
mxCopyInteger1ToPtr | INTEGER*1 values from Fortran array to pointer
array |
mxCopyPtrToInteger1 | INTEGER*1 values from pointer array to Fortran
array |
字符
mxCopyCharacterToPtr | CHARACTER values from Fortran array to pointer array |
mxCopyPtrToCharacter | CHARACTER values from pointer array to Fortran array |
mxGetString | mxChar array to C-style string or Fortran
character array |
指针
mxCopyPtrToPtrArray | Pointer values from pointer array to Fortran array |
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)