
matlab
fans科
这个作者很懒,什么都没留下…
展开
-
matlab中关于A(I)=B的理解
在matlab中help SUBSASGN(下标分配)即可了解关于A(I)=B的相关信息。A(I) = B assigns the values of B into the elements of A specifed by the subscript vector I. B must have the same number of elements as I or be原创 2013-04-23 23:05:45 · 5647 阅读 · 0 评论 -
matlab中@()的理解
@()是函数句柄的一种高级用法,其语法:变量名=@(输入参数列表) 运算表达式eg:fsk=@(a) a+5;这里,fsk即为函数名,a为参数,a+5为运算表达式。执行这一句过后,相当于定义了一个函数(c语言形式)int fsk(a){int b=a+5;return b;}在matlab中执行c=fsk(3); 那么c=8 。原创 2013-04-24 17:23:45 · 4947 阅读 · 0 评论