for i = 1 :4: 5
y=i+1
clear i
end
k=0;i=0;
while(k<1 && i<1)
k=k+1;
i=i+1;i=i-k;
end
j=0;i=1;
while(j>5)
for i=1:8
j=j+i;
end
end
What is the output of the following code?
M = [1:4;-2:1;2:5];
s = M(end-1,end-1)
What is the output of the following MATLAB code?
A = [1 2 3; 4 5 6];
B = A(A > 2);
B'
Which of the following data type conversions will result in an error?
What will be the output of the following code?
string([1,-2,3] > [-3, -1, 0])
While solving a differential equation, MATLAB will show us the
What is the output of the following code?
syms ‘t’,’p’;
What does the randi(10,5,4)
instruction return?