CN109871522A - Calculating report book cover generation method and computer storage medium based on Matlab - Google Patents
Calculating report book cover generation method and computer storage medium based on Matlab Download PDFInfo
- Publication number
- CN109871522A CN109871522A CN201910029985.3A CN201910029985A CN109871522A CN 109871522 A CN109871522 A CN 109871522A CN 201910029985 A CN201910029985 A CN 201910029985A CN 109871522 A CN109871522 A CN 109871522A
- Authority
- CN
- China
- Prior art keywords
- matlab
- report
- calculating
- book cover
- generation method
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000003860 storage Methods 0.000 title claims abstract description 13
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 4
- 238000004590 computer program Methods 0.000 claims description 11
- 238000002360 preparation method Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000007812 deficiency Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of calculating report book cover generation method and computer storage medium based on Matlab, Matlab software and archive server software are installed in the system run, the following steps are included: 1) start Matlab shell script editing machine, traditional variables are defined, creation calculates report server;2) setup algorithm reports book cover format;3) cover content is write according to calculating report book cover format;4) file is saved, report server is exited.This method can be automatically performed a large amount of repeated works by Matlab scripted code, and book cover is reported in the calculating for working out unified format, be of great significance to repeated work, raising working efficiency and report quality is reduced.
Description
Technical field
The present invention relates to a kind of calculating report book cover generation method and computer storage mediums, more particularly to a kind of base
Book cover generation method and computer storage medium are reported in the calculating of Matlab.
Background technique
Technical staff faces report when carrying out the scientific research activities such as engineering calculation using Matlab large-scale matrix software for calculation
Book format disunity writes the problem of low efficiency.During working out report, it is often necessary to work out and calculate by fixed template
Report, and handling the format for calculating report and a large amount of uninteresting duplicate manual operations of template needs could complete, and consume
A large amount of manpower still can directly use Matlab software design, freely adjust and generate calculating report without one kind at present
The method of cover.
Summary of the invention
Goal of the invention: the technical problem to be solved in the present invention is to provide a kind of, and the calculating report book cover based on Matlab is raw
At method and computer storage medium, the deficiency for calculating report book cover can not be directly generated using Matlab software by overcoming,
Report book cover is write by unified format convenient for technical staff, the confusion of report book cover format is avoided, improves and write
Efficiency.
Technical solution: book cover generation method, the system run are reported in the calculating of the present invention based on Matlab
In Matlab software and archive server software are installed, comprising the following steps:
(1) start Matlab shell script editing machine, define traditional variables, creation calculates report server;
(2) setup algorithm reports book cover format;
(3) cover content is write according to calculating report book cover format;
(4) file is saved, report server is exited.
Further, the link in step (1) the following steps are included:
(1) link Matlab shell script returns to meter if the server has already turned on calculating report server
Report handle is calculated, otherwise, creation calculates report server and returns to report handle;
(2) the calculating report is saved.
Further, the format of document described in step (2) includes cursor initial position, page-size, paper sample
Formula, orientation, up and down white space, first trip retraction, line space, text justification mode and text size.
Further, the cover content includes documentation unit, document code, document preparation time, establishment people
Member and Document Title.
Further, the Matlab software version is not less than R2015a, and the archive server software includes
Word 2010, word 2013, wps2010 and wps2013.
Computer storage medium of the present invention, is stored thereon with computer program, and described program is subsequently can by computer
The method that device realizes any of the above item when executing.
The utility model has the advantages that this method can be automatically performed a large amount of repeated works by Matlab scripted code, unified lattice are worked out
Book cover is reported in the calculating of formula, is of great significance to repeated work, raising working efficiency and report quality is reduced.
Detailed description of the invention
Fig. 1 is this method overall flow figure.
Specific embodiment
The Matlab software version that this method uses is not less than R2015a, and calculating report server version includes word
2010, word 2013, wps2010 and wps 2013, report book cover template content include: documentation unit, document volume
Number, write the time, authorized personnel, Document Title, establishment place, below by taking word server as an example, specific embodiment such as Fig. 1
It is shown.
S1: starting Matlab script-editor defines traditional variables such as report title, author and writes time, document
Number, link main program and calculating report server.Source code is as follows in script file:
S2: setup algorithm reports that book cover font and paragraph format, script file source code are as follows:
%% sets page-size
%Document.PageSetup.PaperSize='wdPaperA4';Paper pattern is arranged in %
%Document.PageSetup.Orientation='wdOrientPortrait';% arrangement mode is vertical
Direction
Document.PageSetup.TopMargin=57*1.2637;% unit pixel
Document.PageSetup.BottomMargin=57*1.2637;
Document.PageSetup.LeftMargin=57*1.5821;
Document.PageSetup.RightMargin=57*1.5821;
Document.PageSetup.HeaderDistance=50;
%Document.Paragraphs.FirstLineIndent=25;% first trip retraction
Document.ActiveWindow.ActivePane.View.Type='wdPrintView';View is arranged in %
Mode is the page
S3, by report book cover template write content, specifically include: header, the page number, documentation unit, document code,
It is as follows to write time, authorized personnel, Document Title and template other content, scripted code:
S4, it saves and exits report server
%% is saved and is exited
Document.ActiveWindow.ActivePane.View.Type='wdPrintView';The page is arranged in %
View
Document.Save;% saves document
Document.Close;% close document
Word.Quit;% exits word server
After writing above-mentioned code in Matlab shell script window, the compiler of Matlab is then run, packet is generated
Calculating report containing cover.
The embodiments of the present invention also provide a kind of computer storage mediums, are stored thereon with computer program.When described
When computer program is executed by processor, method that aforementioned control may be implemented.For example, the computer storage medium is computer
Readable storage medium storing program for executing.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Claims (6)
1. book cover generation method is reported in a kind of calculating based on Matlab, be equipped in the system run Matlab software and
Archive server software, it is characterised in that the following steps are included:
(1) start Matlab shell script editing machine, define traditional variables, creation calculates report server;
(2) setup algorithm reports book cover format;
(3) cover content is write according to calculating report book cover format;
(4) file is saved, exits and calculates report server.
2. book cover generation method is reported in the calculating according to claim 1 based on Matlab, it is characterised in that step (1)
In link the following steps are included:
(1) link Matlab shell script and calculating report server return to calculating report if the server has already turned on
Book handle is accused, otherwise, creation calculates report server and returns to report handle;
(2) the calculating report is saved.
3. book cover generation method is reported in the calculating according to claim 1 based on Matlab, it is characterised in that: step
(2) format of the document described in includes cursor initial position, page-size, paper pattern, orientation, up and down sky
White region, first trip retraction, line space, text justification mode and text size.
4. book cover generation method is reported in the calculating according to claim 1 based on Matlab, it is characterised in that: described
Cover content includes documentation unit, document code, document preparation time, authorized personnel and Document Title.
5. book cover generation method is reported in the calculating according to claim 1 based on Matlab, it is characterised in that: described
Matlab software version be not less than R2015a, the archive server software include word 2010, word 2013,
Wps2010 and wps2013.
6. a kind of computer storage medium, is stored thereon with computer program, it is characterised in that: described program is subsequently can by computer
Any one of claim 1 to 5 the method is realized when device executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910029985.3A CN109871522A (en) | 2019-01-10 | 2019-01-10 | Calculating report book cover generation method and computer storage medium based on Matlab |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910029985.3A CN109871522A (en) | 2019-01-10 | 2019-01-10 | Calculating report book cover generation method and computer storage medium based on Matlab |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109871522A true CN109871522A (en) | 2019-06-11 |
Family
ID=66917704
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910029985.3A Pending CN109871522A (en) | 2019-01-10 | 2019-01-10 | Calculating report book cover generation method and computer storage medium based on Matlab |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109871522A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105653255A (en) * | 2014-12-08 | 2016-06-08 | 远光软件股份有限公司 | Method arranging report template to automatically generate report files in office frame |
US9369352B1 (en) * | 2014-08-07 | 2016-06-14 | Sprint Communications Company L.P. | Method of capturing server and operating system metrics for virtual to physical topology reporting |
CN107728058A (en) * | 2017-09-12 | 2018-02-23 | 合肥国轩高科动力能源有限公司 | Motor efficiency report generation method and system based on L-abview and MAT L AB |
-
2019
- 2019-01-10 CN CN201910029985.3A patent/CN109871522A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9369352B1 (en) * | 2014-08-07 | 2016-06-14 | Sprint Communications Company L.P. | Method of capturing server and operating system metrics for virtual to physical topology reporting |
CN105653255A (en) * | 2014-12-08 | 2016-06-08 | 远光软件股份有限公司 | Method arranging report template to automatically generate report files in office frame |
CN107728058A (en) * | 2017-09-12 | 2018-02-23 | 合肥国轩高科动力能源有限公司 | Motor efficiency report generation method and system based on L-abview and MAT L AB |
Non-Patent Citations (1)
Title |
---|
孙剑: "一种基于MATLAB的Word报告自动生成方法", 《科技广场》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111597600B (en) | BIM forward design chart system based on Revit | |
CN105045775A (en) | Method and apparatus for generating Excel document in designated format | |
WO2005058029A3 (en) | Mask creation with hierarchy management using cover cells | |
CN111783414A (en) | Label printing template generation method and device | |
CN104484419A (en) | Test case document conversion system and test case document conversion method | |
CN103064919B (en) | Method and device for preserving configuration parameters in business system | |
CN104391991A (en) | Method for converting AutoCAD data into GIS spatial data | |
CN104572744A (en) | Structured document generating method and device | |
CN109871522A (en) | Calculating report book cover generation method and computer storage medium based on Matlab | |
US10031894B2 (en) | Method and apparatus of building intermediate character library | |
CN102866868B (en) | GDI hook technology is utilized to realize the method for watermark printing | |
CN103488442B (en) | The personalized real time print system and method for a kind of card face | |
CN116225902A (en) | Method, device and equipment for generating test cases | |
CN102456290A (en) | Method and device for displaying plane-shaped object in electronic map | |
CN204374692U (en) | A kind of cloud for journey access file stores integrative machine | |
CN110853327B (en) | Ship cabin equipment data field debugging and collecting method and device based on single chip microcomputer | |
CN109741417B (en) | Method and device for generating graphic file, computing equipment and storage medium | |
JP2011113276A (en) | Engineering tool | |
CN109284489A (en) | Conversion method and device of nuclear power plant's Word file to the html file based on template | |
JP5478936B2 (en) | Information processing apparatus and information processing method | |
CN105045774A (en) | WYSIWYG user interface operation manual compiling and generating method | |
CN110322531A (en) | Automatic marking method, system, equipment and the storage medium of band steel support | |
CN105205726A (en) | Hydropower station operating and reservoir dispatching data quick generation method | |
CN111625241A (en) | Webpage layout code generation method based on visual modeling | |
CN110333906A (en) | Method, system, device and the storage medium of equipment are reserved in a kind of quick processing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190611 |