for loop array with increment. changing answer from vertical to horizontal

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

Risposta accettata

Arthur Roué
Arthur Roué il 27 Lug 2020
f = input ("Input first number: ");
s = input ("Input second number:");
disp(f:s)

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by