Community Profile

photo

adena0


4 total contributions since 2019

adena0's Badges

  • Thankful Level 1

View details...

Contributions in
View by

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...

6 maanden ago | 1 answer | 0

1

answer

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?

6 maanden ago | 1 answer | 0

1

answer

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...

6 maanden ago | 1 answer | 0

1

answer

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?

6 maanden ago | 1 answer | 0

1

answer