list all 9 integer between -3.5 and 5.5

조회 수: 2 (최근 30일)
Kathy Andrews
Kathy Andrews 2022년 11월 29일
댓글: Voss 2022년 12월 8일
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 CenterFile Exchange에서 Structures에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by