📄 fx_menu.m
字号:
function fx_menu
% Labels
%
labels = str2mat( ...
'x ', ...
'x.^2 ', ...
'1 - (x.^2) ', ...
'(x.^2) - 2*(x.^3) + (5*x) - 3', ...
'sin(x) ', ...
'cos(x) ', ...
'sinc(x) ', ...
'sinc(x).^2 ', ...
'(1/sqrt(2*pi))*exp(-x.^2/2) ', ...
'(1/2)*exp(-abs(x)) ' );
% Callbacks
%
callbacks = [ ...
'mc_int(''x'') '
'mc_int(''x.^2'') '
'mc_int(''1 - (x.^2)'') '
'mc_int(''(x.^2) - 2*(x.^3) + (5*x) - 3'') '
'mc_int(''sin(x)'') '
'mc_int(''cos(x)'') '
'mc_int(''sinc(x)'') '
'mc_int(''sinc(x).^2'') '
'mc_int(''(1/sqrt(2*pi))*exp(-x.^2/2)'') '
'mc_int(''(1/2)*exp(-abs(x))'') '];
chhoices('MONTE-CARLO', 'Available Functions', labels, callbacks );
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -