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 명령 창에 입력하십시오. 웹 브라우저는 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)