list all 9 integer between -3.5 and 5.5

2 ビュー (過去 30 日間)
Kathy Andrews
Kathy Andrews 2022 年 11 月 29 日
コメント済み: Voss 2022 年 12 月 8 日
この 質問 は Star Strider さんによってフラグが設定されました
list all 9 integer between -3.5 and 5.5
  1 件のコメント
Voss
Voss 2022 年 12 月 8 日
[-3 -2 -1 0 1 2 3 4 5]
ans = 1×9
-3 -2 -1 0 1 2 3 4 5

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

採用された回答

David Hill
David Hill 2022 年 11 月 29 日
unique(fix(-3.5:5.5))
ans = 1×9
-3 -2 -1 0 1 2 3 4 5
  1 件のコメント
John D'Errico
John D'Errico 2022 年 11 月 29 日
@David Hill - please. You know better than to do obvious homework (with no effort made or shown) on this site. It does not help the student, except to create a monster who will now think they can just post their homeworkassignment on Answers with no effort shown. It does not help Answers, since it then convinces other students they too can post their homework.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by