有关.m文件输出参数的一个问题
function = bnd1price(Yield, CouponRate, Settle, Maturity)<BR> = bndprice(Yield, CouponRate, Settle, Maturity)<BR>Price1=Price+AccruedInt<BR><BR>上面的.m文件是自定义的,我只想输出结果Price1,可是Price, AccruedInt也会输出来,怎么改动呢回复:(rucmathlsj)有关.m文件输出参数的一个问题
function = bnd1price(Yield, CouponRate, Settle, Maturity)<BR> = bndprice(Yield, CouponRate, Settle, Maturity);<BR>Price1=Price+AccruedInt;<BR><BR>加两个分号就行了
页:
[1]