logret.m
来自「Modeling and Forecasting Electricity Loa」· M 代码 · 共 10 行
M
10 行
function r=logret(x)%LOGRET Logarithmic returns.% R=LOGRET(X) returns logarithmic returns of vector X.% For matrices the returns are taken along the first coordinate.% Written by Rafal Weron (2000.12.15, 2007.06.15)% Copyright (c) 2000-2007 by Rafal Weron[l,m] = size(x);r = log(x(2:l,:)./x(1:l-1,:));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?