Problem 43963. Finding operators in a MATLAB function in a string.
The aim is to find if there is an operator inside a MATLAB function call in a formula. The input is a string and the output is a boolean which is true if the string contains at least one operator in a function call, and false otherwise.
For example:
'min(var1+var2,2)' => true
'min(1,2)+min(3,4)' => false
'min(min(1,2),3))' => false
'min(min(1,var1+2),3))' => true
'4*var1' => false, there is no MATLAB function
You can assume that all opening brackets are closed.
Solution Stats
Problem Comments
-
1 Comment
Jean-Marie Sainthillier
on 2 Jan 2017
Difficult
Solution Comments
Show commentsProblem Recent Solvers7
Suggested Problems
-
Project Euler: Problem 3, Largest prime factor
1784 Solvers
-
346 Solvers
-
72 Solvers
-
Given a matrix, return the last eigen value
231 Solvers
-
Number of odd and even elements within matrix
159 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!