%{
    Save the row vector X with 24 equally spaced elements
    form -5 to 7
%}
X = linspace(-5, 7, 24)

%{
    Calculate Y = sqrt(2) X
%}
Y = sqrt(2)*X

%{
    From Y delete the elements having indexes that are multiple 
    of 3
    3, 6, 9, 12, 15,...
    
    3:3:end
    The end of the array is not taken if it is not a multiple
    of 3 (for example try to execute 3:3:11).
%}
Y(3:3:end) = []

%{
    Create Z with equally spaced elements from
    1 to 16 step 1
%}
Z = 1:1:16   % equivalent to Z = 1:16

%{
    Calculate, if possible, V = Y + Z
%}
tmp = sprintf("Y has %d elements", length(Y));
disp(tmp)
tmp = sprintf("Z has %d elements", length(Z));
disp(tmp)
%length(Y)
%length(Z)
V = Y + Z

%{
    Let f(x) = ((2x^2 - 3)^(1/3))/(0.2 x),
    calculare W = f(Z)
%}
W = ((2*Z.^2 - 3).^(1/3))./(.2*Z)

%{
    Save a matrix A:
- first column: vector of 3 equally spaced elements from 1 to -5
- second column: vector of elements 2,4,5
- third column: elements 1, ln(4), e5
%}
A = [linspace(1, -5, 3)', [2 4 5]', [1, log(4), exp(5)]']

%{
    Obtain matrix B by trasposing matrix A
%}
B = A'

%{
    Calculate matrix C by elevating each element of matrix A to the correspondent element of
matrix B
%}
C = A.^B

%{
    Compute D=-3A+2B/C
%}
D = -3*A + 2*B./C

%{
    Let f = sqrt(x - 1)/ln|x + 3|
    obtain matrix E by applying function f to matrix D
%}
E = sqrt(D - 1)./log(abs(D + 3))