📄 write.m
字号:
function write(filename, format, a)% WRITE Output a quaternion array to a text file.%% write(filename, format, a)%% This function writes a text file which is designed to be easily% read into other software, such as Maple, Mathematica, etc. The% first line of the file contains two integer values giving the% number of rows and columns in the file. The quaternion values% then follow in raster order, that is with the column index varying% most rapidly. Each quaternion value occupies one line in the file,% and consists of four floating-point values, separated by spaces.%% The format parameter may be omitted, in which case a default is% assumed which outputs sufficient digits to represent double values% with no loss of accuracy. Otherwise the format is a string (see the% standard Matlab function fprintf for details).%% If the parameter a is a pure quaternion, only three components are% written per quaternion.% Copyright
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -