ベクトルの値が増加しているかを調べよう - MATLAB Cody - MATLAB Central

Problem 44398. ベクトルの値が増加しているかを調べよう

ベクトルの値が増加している場合 (ベクトルの各要素が前の要素よりも大きい場合) には true を、そうでない場合には false を返すようなコードを書いてみましょう。

例:

   入力が  x = [-3 0 7] のとき、
   関数の出力 tf は true を返します。
   入力が  x = [2 2] のとき、
   関数の出力 tf は false を返します。

Solution Stats

34.74% Correct | 65.26% Incorrect
Last Solution submitted on Apr 27, 2025

Problem Comments

Solution Comments

Show comments

Group

Matrix Patterns III Image
Matrix Patterns III
  • 12 Problems
  • 47 Finishers

Problem Recent Solvers345

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page