Matlab提高矩阵的精度

时间:2015-05-05 20:58:19

标签: matlab matrix

我有一个像这样的矩阵

(?:\w\w\w (0?[1-9]|1[012])[- \/.](0?[1-9]|[12][0-9]|3[01])[- \/.](19|20)?\d\d)?(\s?(0?[1-9]|1[012])[- \/.](0?[1-9]|[12][0-9]|3[01])[- \/.](19|20)?\d\d((?: |\s*-\s*)(?:(?:([01]?\d|2[0-3]):)?([0-5]?\d):)?([0-5]?\d)( AM| PM)?))

其中k,a,b,x,y和e是我想要的向量,当显示这个矩阵时,它的行的值不会以像这样enter image description here的尾数和指数形式显示

有什么帮助吗?

1 个答案:

答案 0 :(得分:4)

只需使用format命令:

format longG

其他选项包括:longshorthexshortEngcompactlongEng。检查下表:

enter image description here

检查help page