이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
Fortran 데이터에 액세스하기
데이터 읽기 또는 데이터를 배열에 쓰기
차원과 크기 같은 MATLAB® 배열에 대한 정보를 가져오고 유형을 기반으로 데이터의 요소를 가져오려면 다음의 함수를 사용하십시오. 또한 이러한 함수를 사용하여 데이터를 mxArray
변수에 쓸 수 있습니다.
Fortran 함수
배열 특성
mxGetNumberOfDimensions | mxArray의 차원 수 |
mxGetElementSize | Number of bytes required to store each data element |
mxGetDimensions | Pointer to dimensions array |
mxSetDimensions | Modify number of dimensions and size of each dimension |
mxGetNumberOfElements | 숫자형 mxArray의 요소 개수 |
mxCalcSingleSubscript | Offset from first element to desired element |
mxGetM | mxArray의 행 개수 |
mxSetM | mxArray의 행 개수 설정 |
mxGetN | mxArray의 열 개수 |
mxSetN | mxArray의 열 개수 설정 |
실수 숫자형
mxGetScalar | Real component of first data element in array |
mxGetDoubles | mxDOUBLE_CLASS 배열의 실수 데이터 요소 |
mxSetDoubles | mxDOUBLE_CLASS 배열에 실수 데이터 요소 설정 |
mxGetSingles | mxSINGLE_CLASS 배열의 실수 데이터 요소 |
mxSetSingles | mxSINGLE_CLASS 배열에 실수 데이터 요소 설정 |
mxGetInt8s | mxINT8_CLASS 배열의 실수 데이터 요소 |
mxSetInt8s | mxINT8_CLASS 배열에 실수 데이터 요소 설정 |
mxGetUint8s | mxUINT8_CLASS 배열의 실수 데이터 요소 |
mxSetUint8s | mxUINT8_CLASS 배열에 실수 데이터 요소 설정 |
mxGetInt16s | mxINT16_CLASS 배열의 실수 데이터 요소 |
mxSetInt16s | mxINT16_CLASS 배열에 실수 데이터 요소 설정 |
mxGetUint16s | mxUINT16_CLASS 배열의 실수 데이터 요소 |
mxSetUint16s | mxUINT16_CLASS 배열에 실수 데이터 요소 설정 |
mxGetInt32s | mxINT32_CLASS 배열의 실수 데이터 요소 |
mxSetInt32s | mxINT32_CLASS 배열에 실수 데이터 요소 설정 |
mxGetUint32s | mxUINT32_CLASS 배열의 실수 데이터 요소 |
mxSetUint32s | mxUINT32_CLASS 배열에 실수 데이터 요소 설정 |
mxGetInt64s | mxINT64_CLASS 배열의 실수 데이터 요소 |
mxSetInt64s | mxINT64_CLASS 배열의 데이터 요소 설정 |
mxGetUint64s | mxUINT64_CLASS 배열의 실수 데이터 요소 |
mxSetUint64s | mxUINT64_CLASS 배열에 실수 데이터 요소 설정 |
mxGetData | Data elements in nonnumeric mxArray |
mxSetData | Set pointer to data elements in nonnumeric
mxArray |
mxGetPr | (권장되지 않음) mxDOUBLE_CLASS 배열의 실수 데이터 요소 |
mxSetPr | (Not recommended) Set real data elements in mxDOUBLE_CLASS
array |
복소수 숫자형
mxGetComplexDoubles | mxDOUBLE_CLASS 배열의 복소수 데이터 요소 |
mxSetComplexDoubles | mxDOUBLE_CLASS 배열에 복소수 데이터 요소 설정 |
mxGetComplexSingles | mxSINGLE_CLASS 배열의 복소수 데이터 요소 |
mxSetComplexSingles | Set complex data elements in mxSINGLE_CLASS
array |
mxGetComplexInt8s | mxINT8_CLASS 배열의 복소수 데이터 요소 |
mxSetComplexInt8s | Set complex data elements in mxINT8_CLASS array |
mxGetComplexUint8s | mxUINT8_CLASS 배열의 복소수 데이터 요소 |
mxSetComplexUint8s | mxUINT8_CLASS 배열에 복소수 데이터 요소 설정 |
mxGetComplexInt16s | Complex data elements in mxINT16_CLASS array |
mxSetComplexInt16s | Set complex data elements in mxINT16_CLASS array |
mxGetComplexUint16s | Complex data elements in mxUINT16_CLASS array |
mxSetComplexUint16s | Set complex data elements in mxUINT16_CLASS
array |
mxGetComplexInt32s | Complex data elements in mxINT32_CLASS array |
mxSetComplexInt32s | Set complex data elements in mxINT32_CLASS array |
mxGetComplexUint32s | Complex data elements in mxUINT32_CLASS array |
mxSetComplexUint32s | Set complex data elements in mxUINT32_CLASS
array |
mxGetComplexInt64s | Complex data elements in mxINT64_CLASS array |
mxSetComplexInt64s | Set complex data elements in mxINT64_CLASS array |
mxGetComplexUint64s | Complex data elements in mxUINT64_CLASS array |
mxSetComplexUint64s | Set complex data elements in mxUINT64_CLASS
array |
mxGetImagData | Imaginary data elements in numeric mxArray |
mxSetImagData | Set imaginary data elements in numeric mxArray |
mxGetPi | (Not recommended) Imaginary data elements in mxDOUBLE_CLASS
array |
mxSetPi | (Not recommended) Set imaginary data elements in
mxDOUBLE_CLASS array |
클래스
mxGetClassID | Class of mxArray |
mxGetClassName | Class of mxArray as string |
객체
mxGetProperty | Value of public property of MATLAB object |
mxSetProperty | Set value of public property of MATLAB object |
구조체
mxGetField | Pointer to field value from structure array, given index and field name |
mxSetField | Set field value in structure array, given index and field name |
mxGetNumberOfFields | Number of fields in structure array |
mxGetFieldNameByNumber | Pointer to field name from structure array, given field number |
mxGetFieldNumber | Field number from structure array, given field name |
mxGetFieldByNumber | Pointer to field value from structure array, given index and field number |
mxSetFieldByNumber | Set field value in structure array, given index and field number |
mxAddField | 구조체형 배열에 필드 추가 |
mxRemoveField | Remove field from structure array |
희소 형식
mxGetNzmax | Number of elements in IR, PR, and PI arrays |
mxSetNzmax | Set storage space for nonzero elements |
mxGetIr | Sparse matrix IR array |
mxSetIr | IR array of sparse array |
mxGetJc | Sparse matrix JC array |
mxSetJc | JC array of sparse 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)