MATLAB: For loop array with increment. changing answer from vertical to horizontal

arrayvertical to horizontal

clc; close all; clear all;
f = input ("Input first number: ");
s = input ("Input second number:");
for e = [f:1:s];
disp(e)
end

Best Answer

f = input ("Input first number: ");
s = input ("Input second number:");
disp(f:s)
Related Question