文件名称:数值分析的作业
文件大小:25KB
文件格式:DOCX
更新时间:2017-07-02 16:03:45
MATLAB
数值分析的作业function [xbar,s]=exA_2(x) n=length(x); % 解法1. for 循环 xbar =0; xs =0; for t=1:n xbar = xbar + x(t); xs = xs + x(t)^2; end xbar=xbar/n; s=sqrt((xs-n*xbar^2)/(n-1));
文件名称:数值分析的作业
文件大小:25KB
文件格式:DOCX
更新时间:2017-07-02 16:03:45
MATLAB
数值分析的作业function [xbar,s]=exA_2(x) n=length(x); % 解法1. for 循环 xbar =0; xs =0; for t=1:n xbar = xbar + x(t); xs = xs + x(t)^2; end xbar=xbar/n; s=sqrt((xs-n*xbar^2)/(n-1));