p2_17.m
来自「Advanced Engineering Mathematics using M」· M 代码 · 共 7 行
M
7 行
% P2_17.M Convert an octal fraction to decimal by callin % function foct2dec. Input octal fraction as vector [o o o ..]fracoct=input('Input octal fraction as a vector ')format long % Show full precisionfprintf('Decimal Value\n')dec = foct2dec(fracoct)format short
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?