temp.m

来自「英语不好,翻译的有点不对,但是很值得一看的课件.」· M 代码 · 共 7 行

M
7
字号
hours=1:12;
temps=[5 8 9 15 25 29 31 30 22 25 27 24];
h=1:0.1:12;
t=interp1(hours,temps,h,'spline');  
plot(hours,temps,'+',h,t,hours,temps,'r:')    
xlabel('Hour'),ylabel('Degrees Celsius')

⌨️ 快捷键说明

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