新闻摘要:为了演示If-Else-End结构,考虑精通MATLAB工具箱中函数mmono,它检查一个向量的单调性。 »。 mmono(1:12) % strictly increasing input ans = 2 »。 mmono([1:12 12 13:24]) % non decreasing input ans = 1 »。
为了演示If-Else-End结构,考虑精通MATLAB工具箱中函数mmono,它检查一个向量的单调性。
» mmono(1:12) % strictly increasing input
ans =
2
» mmono([1:12 12 13:24]) % non decreasing input
ans =
&nb
您现在的位置: 