由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Quant版 - about MatLab programming (转载)
相关主题
one C++ question[合集] 问个比较弱的
请教: c++ 重载问题[合集] find a function
请教VBA(macro 跟 user defined function)[合集] 一道面试题
Free Matlab?[合集] Hedge fund面试要做test, 会怎么样?
matlab有排名function么?请问一下Functionality Support role有前途吗?
matlab的linprog怎么设绝对值条件?functional analysis是stochastic integration的基础吗
Anyone knows Matlab GUI design?Functional Analysis book?
Matlab进行SDE离散化VBA public function求助
相关话题的讨论汇总
话题: matlab话题: function话题: arguments话题: functions话题: defined
进入Quant版参与讨论
1 (共1页)
j*******d
发帖数: 55
1
【 以下文字转载自 EE 讨论区 】
发信人: JohnSteed (Mrs Peel, Mrs Emma Peel), 信区: EE
标 题: about MatLab programming
发信站: BBS 未名空间站 (Mon Nov 12 15:40:26 2007)
Here is a low-level question from a Matlab rookie.
I wanna write a function having a few arguments, one or two of these
arguments have to be functions, neither number, nor string.
Basically, the arguments are functions defined by users; I write a MatLab
program(function) that works for these user-defined functions.
How can I implement the function in MatLab
r*********e
发帖数: 80
2
I think you must have specified values, whatever format, as parameters of a
function.
So if mu are function of S and T, you can call function mu first, store and
feed the returned value as parameter of function SDE.
maybe f(g(x)) type also work, if g(x) returns a value.
j*******d
发帖数: 55
3
Thanks. But the puzzle is that the user-defined function could be anything:
uSt, or sigma*sqrt(St) and so on...
for each different input function, I have to change the codes (the codes
used to define the function) accordingly?

a
and

【在 r*********e 的大作中提到】
: I think you must have specified values, whatever format, as parameters of a
: function.
: So if mu are function of S and T, you can call function mu first, store and
: feed the returned value as parameter of function SDE.
: maybe f(g(x)) type also work, if g(x) returns a value.

m****y
发帖数: 92
4
use function handles ba?

【 以下文字转载自 EE 讨论区 】
发信人: JohnSteed (Mrs Peel, Mrs Emma Peel), 信区: EE
标 题: about MatLab programming
发信站: BBS 未名空间站 (Mon Nov 12 15:40:26 2007)
Here is a low-level question from a Matlab rookie.
I wanna write a function having a few arguments, one or two of these
arguments have to be functions, neither number, nor string.
Basically, the arguments are functions defined by users; I write a MatLab
program(function) that works for these user-defined functions.
How can I implem

【在 j*******d 的大作中提到】
: 【 以下文字转载自 EE 讨论区 】
: 发信人: JohnSteed (Mrs Peel, Mrs Emma Peel), 信区: EE
: 标 题: about MatLab programming
: 发信站: BBS 未名空间站 (Mon Nov 12 15:40:26 2007)
: Here is a low-level question from a Matlab rookie.
: I wanna write a function having a few arguments, one or two of these
: arguments have to be functions, neither number, nor string.
: Basically, the arguments are functions defined by users; I write a MatLab
: program(function) that works for these user-defined functions.
: How can I implement the function in MatLab

j*******d
发帖数: 55
5
对. 我只能用function handles,一个主程序,调用一个涵数, 用户输入韩数在主程序里
可以任意修改. 谢谢.

【在 m****y 的大作中提到】
: use function handles ba?
:
: 【 以下文字转载自 EE 讨论区 】
: 发信人: JohnSteed (Mrs Peel, Mrs Emma Peel), 信区: EE
: 标 题: about MatLab programming
: 发信站: BBS 未名空间站 (Mon Nov 12 15:40:26 2007)
: Here is a low-level question from a Matlab rookie.
: I wanna write a function having a few arguments, one or two of these
: arguments have to be functions, neither number, nor string.
: Basically, the arguments are functions defined by users; I write a MatLab

1 (共1页)
进入Quant版参与讨论
相关主题
VBA public function求助matlab有排名function么?
[合集] Excel中的问题matlab的linprog怎么设绝对值条件?
这里有人写c++的时候用boost吗?Anyone knows Matlab GUI design?
[合集] C++: operator new 为啥要是 static的, 不是有啥影响? (Matlab进行SDE离散化
one C++ question[合集] 问个比较弱的
请教: c++ 重载问题[合集] find a function
请教VBA(macro 跟 user defined function)[合集] 一道面试题
Free Matlab?[合集] Hedge fund面试要做test, 会怎么样?
相关话题的讨论汇总
话题: matlab话题: function话题: arguments话题: functions话题: defined