フィルターのクリア

hi i need writing a code that ceil random number without preset func like ceil,fix,

1 回表示 (過去 30 日間)
probably I need to use some loop someone's help?
  2 件のコメント
James Tursa
James Tursa 2017 年 7 月 27 日
Why can't you use supplied functions? (You are going to need to use some supplied functions to get this done). Is this homework? What have you done so far?
Jan
Jan 2017 年 7 月 28 日
@yuval ohayon: The question is not clear. Which functions are not allowed? What exactly are "random numbers"? Please edit the question and add some details.

サインインしてコメントする。

採用された回答

Star Strider
Star Strider 2017 年 7 月 28 日
If you are allowed to use the rem or mod functions, this works:
v = 100*rand(1,10);
Out = v - rem(v,1);
Out = v - mod(v,1);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by