What is the output of the following MATLAB statements?
x = [12:-2:0];
x = x/2;
fprintf('v1 %0.1f v2 %0.0f v3 %0.1fn',x(1),x(length(x)),x(end));
This question belongs to MATLAB software and discusses about MATLAB codes and you are asked to find wrong codes and fix it.
Answer is in MATLAB format
Download Full Solution