Hi I have a problem trying to make a loop

I have a loop in which everytime is looped, it creates a different values. I need to store every different value from that loop that gives me when it ends but I don´t know how to create it
Thanks :)

2 Comments

Can you describe your questuon more clearly ? What you want to store and which loop you want to use ?
For example
I want to get a random number from 1 to 100
I get any number and i want to store that number in a vector
Choose any other random number again
And I want to store that number with the last one I got
And repeat
I just want to know which function to use
Im bad a coding and idk how to explain more clearly :((

This question is closed.

Asked:

on 11 Dec 2020

Closed:

on 12 Dec 2020

Community Treasure Hunt

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

Start Hunting!