在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 2212|回复: 2

初学者 简单问题

[复制链接]
发表于 2008-3-17 13:40:18 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
本帖最后由 eecsseudl 于 2013-4-29 10:08 编辑

我 在 《matlab语言与自动控制系统设计》中看到这样一个例题,
求二阶系统阶跃响应的超调量和峰值时间
函数中写到:
funcation[pos,tp]=stepchar(t,y)
[mp,ind]=max(y);dimt=length(t);…………(略)

我不知道y是个什么样的向量。是个普通的 向量还是个二元的向量??
如果是个普通的向量[mp,ind]=max(y);这句话怎么能将下标(ind)也读出来?
如果是个二元的向量那么在调用这个函数的时候系统传递函数怎么用语言描述出来??
另外mp和ind是系matlab自己定义的变量吗????

哎,,,,,想不明白,,,希望各位百忙中不吝赐教,现谢过了








发表于 2008-3-21 16:20:18 | 显示全部楼层

看帮助啊

看帮助啊
发表于 2008-3-21 16:24:35 | 显示全部楼层

max

MAX    Largest component.
    For vectors, MAX(X) is the largest element in X. For matrices,
    MAX(X) is a row vector containing the maximum element from each
    column. For N-D arrays, MAX(X) operates along the first
    non-singleton dimension.

    [Y,I] = MAX(X) returns the indices of the maximum values in vector I.
    If the values along the first non-singleton dimension contain more
    than one maximal element, the index of the first one is returned.

    MAX(X,Y) returns an array the same size as X and Y with the
    largest elements taken from X or Y.  Either one can be a scalar.

    [Y,I] = MAX(X,[],DIM) operates along the dimension DIM.

    When complex, the magnitude MAX(ABS(X)) is used, and the angle
    ANGLE(X) is ignored.  NaN's are ignored when computing the maximum.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-5-6 01:47 , Processed in 0.031244 second(s), 9 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表