| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Bioinformatics Toolbox |
| Contents | Index |
| Learn more about Bioinformatics Toolbox |
dmwrite(DMObj, File)
dmwrite(..., 'Delimiter', DelimiterValue,
...)
dmwrite(..., 'Precision', PrecisionValue,
...)
dmwrite(..., 'Header', HeaderValue,
...)
dmwrite(..., 'Annotated', AnnotatedValue,
...)
dmwrite(..., 'Append', AppendValue,
...)
| DMObj | DataMatrix object, such as created by DataMatrix (object constructor). |
| File | String specifying either a file name or a path and file name for saving the text file. |
| DelimiterValue | String specifying a delimiter symbol to use as a matrix column separator. Typical choices are:
|
| PrecisionValue | Precision for writing the data to the text file, specified by either:
Default is 5. |
| HeaderValue | String specifying the first line of the text file. Default is the Name property for the DataMatrix object. |
| AnnotatedValue | Controls the writing of row and column names to the text file. Choices are true (default) or false. |
| AppendValue | Controls the appending of DMObj to File when it is an existing file. Choices are true or false (default). If false, dmwrite overwrites File. |
dmwrite(DMObj, File) writes a DataMatrix object to a text file using the delimiter \t to separate DataMatrix columns. dmwrite writes the data starting at the first column of the first row in the destination file.
dmwrite(..., 'PropertyName', PropertyValue, ...) calls dmwrite with optional properties that use property name/property value pairs. You can specify one or more properties in any order. Enclose each PropertyName in single quotation marks. Each PropertyName is case insensitive. These property name/property value pairs are as follows:
dmwrite(..., 'Delimiter', DelimiterValue, ...) specifies a delimiter symbol to use as a column separator for separating matrix columns. Default is '\t'.
dmwrite(..., 'Precision', PrecisionValue, ...) specifies the precision for writing the data to the text file. Default is 5.
dmwrite(..., 'Header', HeaderValue, ...) specifies the first line of the text file. Default is the Name property for the DataMatrix object.
dmwrite(..., 'Annotated', AnnotatedValue, ...) controls the writing of row and column names to the text file. Choices are true (default) or false.
dmwrite(..., 'Append', AppendValue, ...) controls the appending of DMObj to File when it is an existing file. Choices are true or false (default). If false, dmwrite overwrites File.
Create a DataMatrix object and write the contents to a text file:
% Create a DataMatrix object
dmobj = bioma.data.DataMatrix(rand(2,3), {'Row1', 'Row2'}, ...
{'Col1', 'Col2', 'Col3'})
% Write the DataMatrix object to a text file
dmwrite(dmobj,'testdm.txt')
Bioinformatics Toolbox function: DataMatrix (object constructor)
Bioinformatics Toolbox object: DataMatrix object
![]() | dmNames (bioma.data.ExptData) | dna2rna | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |