ENCMP100 Study Guide - Final Guide: Numerical Error, Double-Precision Floating-Point Format, Identity Matrix

38 views6 pages

Document Summary

Special data file format in matlab: the mat file . mat file is the default type that data files are saved in matlab. To share data among different programs, we need to specify the - ascii option when saving or loading data. It saves one or more variables (var 1 and var 2) in a file with the name specified by the file_name string. By default, the file name will be given a . mat if it has no other extension specified. To save a more general ascii data format, use. It"s suggested to add the . dat extension or . txt to the file name in this case to differentiate from the. mat file. To save in -ascii, the format of the variables should be of double or char type. The save() function can also be executed in a command form. Different from the save() function, there are no single quotation marks for the file name and the variable int his command form.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents