Main Content

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

메모리 매핑

더욱 빠른 액세스를 위해 파일 데이터를 메모리에 매핑

메모리 매핑은 디스크에 있는 파일 또는 파일의 일부분을 응용 프로그램 주소 공간 내 특정 범위의 주소로 매핑하는 메커니즘입니다. 큰 파일을 무작위로 액세스하거나 작은 파일을 자주 액세스하려는 경우에는 메모리 매핑을 사용하십시오. 또한 메모리 매핑을 사용하면 표준 MATLAB® 인덱싱 작업을 사용하여 파일 데이터에 액세스할 수 있습니다. 자세한 내용은 메모리 매핑 개요 항목을 참조하십시오.

함수

memmapfile파일에 대한 메모리 맵(Memory Map) 생성

도움말 항목

  • 메모리 매핑 개요

    메모리 매핑은 디스크에 있는 파일의 일부분 또는 전체 파일을 애플리케이션 주소 공간 내 특정 범위의 주소로 매핑하는 메커니즘입니다.

  • Map File to Memory

    Suppose you want to create a memory map for a file named records.dat, using the memmapfile function.

  • Read from Mapped File

    This example shows how to create two different memory maps, and then read from each of the maps using the appropriate syntax.

  • Write to Mapped File

    This example shows how to create three different memory maps, and then write to each of the maps using the appropriate syntax.

  • Delete Memory Map

    To clear a memmapfile object from memory, do any of the following:

  • Share Memory Between Applications

    This example shows how to implement two separate MATLAB processes that communicate with each other by writing and reading from a shared file.