Problem 44398. ベクトルの値が増加しているかを調べよう
ベクトルの値が増加している場合 (ベクトルの各要素が前の要素よりも大きい場合) には true を、そうでない場合には false を返すようなコードを書いてみましょう。
例:
入力が x = [-3 0 7] のとき、 関数の出力 tf は true を返します。
入力が x = [2 2] のとき、 関数の出力 tf は false を返します。
- (英語版) Problem 10. Determine whether a vector is monotonically increasing https://www.mathworks.com/matlabcentral/cody/problems/10-determine-whether-a-vector-is-monotonically-increasing
Solution Stats
Problem Comments
-
1 Comment
Noriko Hounoki
on 6 Nov 2017
日本語うれしいですっ☆☆☆
Solution Comments
Show commentsProblem Recent Solvers356
Suggested Problems
-
Read a column of numbers and interpolate missing data
2346 Solvers
-
The Hitchhiker's Guide to MATLAB
3379 Solvers
-
Is my wife right? Now with even more wrong husband
1337 Solvers
-
Rotate input square matrix 90 degrees CCW without rot90
671 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
2095 Solvers
More from this Author12
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!