write a matlab code that can work in scilab. to every value of the input vector subract the last three numbers and give as result a vector of the same dimension in matlab
main.m
% Define input vectorinput_vector = [1, 2, 3, 4, 5, 6, 7, 8, 9];
% Subtract the last three numbers from each element in the input vectoroutput_vector = input_vector - input_vector(end-2:end);
disp(output_vector);