Memory-based file loading method in Matlab and database application

A data file, file loading technology, applied in the direction of program loading/starting, program control device, etc., can solve the problem of data file loading performance degradation, and achieve the effect of eliminating necessity

Inactive Publication Date: 2012-01-18
NORTHWESTERN POLYTECHNICAL UNIV
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] To sum up, in the existing file system-based data file loading methods, the file system is used as a temporary data transfer medium, which greatly reduces the data file loading performance of the application system.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Memory-based file loading method in Matlab and database application
  • Memory-based file loading method in Matlab and database application
  • Memory-based file loading method in Matlab and database application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] figure 1 In the existing data loading method based on the file system shown, the data source of the mapping process to the data object set must be a file in the file system, therefore, the loading process of the data file must use the file system as a data transfer medium.

[0019] The data loading process of the present invention is as figure 2 As shown, the mapping process of the data file to the data object set can be done directly in memory, thus eliminating the necessity of the file system intervening in the data loading process. Simplifies the data loading process and significantly improves the data loading performance of the application system.

[0020] The steps of memory-based data loading are as follows:

[0021] Step 1: Establish a connection with the database in Matlab, such as conn=database('testdb', 'scott', 'tiger'); set the return value type of the retrieval result, such as setdbprefs('DataReturnFormat', 'dataset'); retrieve The data file returns the...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a memory-based file loading method in Matlab and database applications. A data file FILE to be loaded is searched in a database and is introduced into a memory buffer zone of the Matlab, and the data file in the memory buffer zone is recorded as FILEbuffer; data object sets in the data file are mapped with the FILEbuffer as a data source. The extraction format of the data object sets in mapping is the same as the storage format of the data object sets; and the data object sets DS are traversed and data objects are loaded into Matlab workspace. The necessary involvement of file systems in mapping of the data object sets can be eliminated, and an optional loading method is provided for the data file in the Matlab loading database.

Description

technical field [0001] The invention relates to a method for quickly loading files in Matlab and database applications. Background technique [0002] MATLAB is the abbreviation of Matrix Laboratory (Matrix Laboratory), which provides powerful scientific computing capabilities and rich toolboxes and function libraries, and is considered to be an ideal computing engine in engineering application systems. [0003] In the face of a large number of data files and complex relationships between data in engineering application systems, simple data organization and storage methods based on file systems cannot meet application requirements. Database technology effectively solves the problems of organization, storage, sharing and redundancy elimination of large amounts of data in the process of computer information processing. Therefore, in engineering application systems, database technology is widely used to store data files. [0004] In the engineering application system of Matlab ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/445
Inventor樊峰峰张延园林奕
OwnerNORTHWESTERN POLYTECHNICAL UNIV