e418.asv

来自「学习Matlab循环语句的好例子」· ASV 代码 · 共 20 行

ASV
20
字号
% Script file logx.m

%  Purpose:
%    To calculate the y(x)=log(1/(1-x))  the value of x must be <1
% else the value of x is illegal

% Record of revisions:
%    Date           Programmer             Description of change
%  =======       ===============        ==========================
%  06/06/08         ZMW                    Original code

% Define variables
% x     ----- input variable
% y     ----- output value
x=input('Please input the value of x:');

while x>=1
    y=log(1/(1-x))
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?