⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tempstats.m

📁 这是《Numerical Methods with MATLAB: Implementation and Application》一书的配书程序(Matlab)
💻 M
字号:
function tempStats
% tempStats  Load data from PDXtemp.dat and compute simple statistics
%            on temperature data in the file

fp = fopen('PDXthead.dat','r')
headings = fgetl(fp)
data = fscanf(fp,'%f');
size(data)
data(1:12)
d = reshape(data,4,12);
d(1:4,1:4)
d = d'
% or one step:  d = reshape(data,4,12,)';
T = d(:,2:4);
Thigh_max = max(T(:,1))
Tlow_min  = min(T(:,2))
Tave_ave  = mean(T(:,3))

⌨️ 快捷键说明

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