for Loop counting Array
Mostra commenti meno recenti
I'm trying to ask the user for an integer input, then store that value as N.
Making a for loop from 1:N creating an array storing elements from 1 to N vertically. like
1
2
3
to N
Risposte (1)
Star Strider
il 17 Mar 2021
0 voti
I prefer using inputdlg for the inputs. Then see the documentation section on Matrix Indexing to understand how to create the vector.
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!