Question: Problem 2 : Using Matlab, Clearly explain the outputs ( y ) of the following Matlab commands: X = [ 1 , 4 , 6

Problem 2: Using Matlab, Clearly explain the outputs (y) of the following Matlab
commands:
X=[1,4,6,7,8,2,3,6,8,1,12,15,16,58;
1,4,6,7,1,4,6,7,23,26,27,65,12,13];
1. y=X(end)
2. y=sort(X)
3. y=X(:,end)
4. y=(X(2)-4)^2+44
5. y=X(:,2)-5;
6. y=X(4,:).^2
7. y=sum(X>=13 & X<=19)
8. y=X(X(9))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!