Community Profile

photo

Kathleen


Virginia Commonwealth University

Active since 2014

Followers: 0   Following: 0

Message

Professional Interests: Veterinary Medicine

Statistics

All
  • Solver

View badges

Feeds

View by

Question


What are different methods to avoid an infinite for/while loop?
When entering the code below, I keep receiving an infinite loop. How do I avoid the infinite loop? clear mat1 = randi(10...

10 years ago | 1 answer | 0

1

answer

Solved


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

10 years ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

10 years ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

10 years ago