When the input is certainly not the global variable z, your function must return false. Otherwise return true. All inputs & variable values will be scalar.
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers6
Suggested Problems
-
Find state names that start with the letter N
1507 Solvers
-
Check to see if a Sudoku Puzzle is Solved
341 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2586 Solvers
-
Generate N equally spaced intervals between -L and L
956 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
896 Solvers
More from this Author32
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
I finally understood your problem. The problem description needs some adjustment. It is not clear that it is requesting only the global variable named 'z'. I thought it was referring to every global variable.
"global variable z" was explicitly mentioned in both the problem title and the problem description. Other than that, I trust that your comment and the Test Suite should be sufficient to remove any residual doubts.
—DIV