Arrays combination

조회 수: 11 (최근 30일)
NONE NONE
NONE NONE 2011년 4월 6일
Given
a = -5:1:-2
b = [-12, 0, -3, -6]
c = 0:-2:-7
What answer will the following commands produce in Matlab?
(a < b) & (a < c)
(b > c) | (a < c)
(b ~= c) | 1
~(b > c) & ( a > b)
(~c | a) & b
Show me some steps or fully explain on how to get Answers for this question.

답변 (1개)

the cyclist
the cyclist 2011년 4월 6일
The steps are:
  1. Log in to MATLAB
  2. Enter those commands exactly as written
  3. See what the output looks like
  4. Submit that answer to your teacher
[Feel free to ask some specific questions if you get stuck at any of those steps.]
  댓글 수: 5
Peter Manley-Cooke
Peter Manley-Cooke 2011년 4월 6일
Personally I would have read the stuff you are supposed to have read and just "know what the symbols mean". Sorry
NONE NONE
NONE NONE 2011년 4월 6일
ok fellows thinks for your help

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by