samplefile.m

来自「Numerical Methods In_Finance And Economi」· M 代码 · 共 9 行

M
9
字号
function [xout, yout] = samplefile(x,y)
% a simple m-file to do some pointless computations
% this comment is printed by issuing the help samplefile
% command
[m,n] = size(x);
[p,q] = size(y);
z = rand(10,m)*x*rand(n,10) + rand(10,p)*y*rand(q,10);
xout = sum(z);
yout = sin(z);

⌨️ 快捷键说明

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