Clear Filters
Clear Filters

-Let the array a be declared as a = [ 1, 2; 2, 3; 1, 2; 2, 3]. The assignment statement a ( 2:3, 1:2)= 0 results in Select one: a. a = [ 0 0; 0 0; 0 0; 0 0] b. a = [ 1 0; 0 0; 1 0; 0 0] c. a = [ 1 2; 2 3; 1 2; 2 3] d. a = [ 1 2; 0 0; 0 0; 2 3]

2 views (last 30 days)
-Let the array a be declared as a = [ 1, 2; 2, 3; 1, 2; 2, 3]. The assignment statement a ( 2:3, 1:2)= 0 results in
Select one:
a. a = [ 0 0; 0 0; 0 0; 0 0]
b. a = [ 1 0; 0 0; 1 0; 0 0]
c. a = [ 1 2; 2 3; 1 2; 2 3]
d. a = [ 1 2; 0 0; 0 0; 2 3]
  3 Comments

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 20 May 2014
Edited: Image Analyst on 20 May 2014
Just do it. Do it yourself in MATLAB and see what the answer is. No need to ask us to do your exam for you - MATLAB will do it for you.
I mean, all you have to do is to paste these lines into an editor window:
a = [ 1, 2; 2, 3; 1, 2; 2, 3]
a( 2:3, 1:2)= 0
and you'll have your answer. Why make us do it for you when it is so trivially easy to do it yourself?

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!