photo

adena0


Last seen: plus de 4 ans il y a Actif depuis 2019

Followers: 0   Following: 0

Statistiques

  • Thankful Level 2
  • Thankful Level 1

Afficher les badges

Feeds

Afficher par

Question


How can I use a while loop to check if user input is an integer?
I want the user to input a non zero even interger. However with my current code, even non zero intergers like '2' aren't recogni...

plus de 5 ans il y a | 1 réponse | 0

1

réponse

Question


How do I use a while loop to keep asking for input of even numbers?
How do I aks user to input an even number but if the number is odd or equal to 0, it should keep asking for input?

plus de 5 ans il y a | 1 réponse | 0

1

réponse

Question


How can my script calculate 1^3 + 2^3 + ⋯ + 10^3 + 11^3 using a for/while loop in matlab?
I'm interested to see how I could calculate 1^3 + 2^3.... 11^3 using for/ while loops. If I used vectors, how would this differ...

plus de 5 ans il y a | 1 réponse | 0

1

réponse

Question


How to index a random matrix with set conditions?
How can I find elements within a random matrix M (5x5) that are negative or are between 20 and 40?

plus de 5 ans il y a | 1 réponse | 0

1

réponse