Problem is solved using Octave open source compiler similar to MATLAB
#####MATLAB CODE
clc; clear all; %write given array A=sin(-pi/2):0.05:cos(0); [M N]=size(A); fprintf('Number of elements in given array=%d', N) B=A(1,10); fprintf('\n\n10th element of array is %d', B)
########OUTPUT###
Number of elements in given array=41 10th element of array is -0.55
Get Answers For Free
Most questions answered within 1 hours.