for loop array with increment. changing answer from vertical to horizontal
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Janncen Young
il 27 Lug 2020
Commentato: Janncen Young
il 27 Lug 2020
clc; close all; clear all;
f = input ("Input first number: ");
s = input ("Input second number:");
for e = [f:1:s];
disp(e)
end
0 Commenti
Risposta accettata
Arthur Roué
il 27 Lug 2020
f = input ("Input first number: ");
s = input ("Input second number:");
disp(f:s)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!