clc; close all; clear all;f = input ("Input first number: ");s = input ("Input second number:");for e = [f:1:s]; disp(e)end
MATLAB: For loop array with increment. changing answer from vertical to horizontal
arrayvertical 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